We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1effcd5 commit a9084a7Copy full SHA for a9084a7
DemoAppSwiftUI/ChannelHeader/NewChatView.swift
@@ -92,6 +92,7 @@ struct NewChatView: View, KeyboardReadable {
92
viewFactory: DemoAppFactory.shared,
93
channelController: controller
94
)
95
+ .modifier(TabBarVisibilityModifier())
96
} else {
97
Spacer()
98
}
@@ -104,6 +105,19 @@ struct NewChatView: View, KeyboardReadable {
104
105
106
107
108
+struct TabBarVisibilityModifier: ViewModifier {
109
+
110
+ func body(content: Content) -> some View {
111
+ if #available(iOS 18, *) {
112
+ content.toolbarVisibility(.hidden, for: .bottomBar)
113
+ } else if #available(iOS 16.0, *) {
114
+ content.toolbar(.hidden, for: .bottomBar)
115
+ } else {
116
+ content
117
+ }
118
119
+}
120
121
struct SelectedUserView: View {
122
123
@Injected(\.colors) var colors
0 commit comments