8000 Fix `ChatChannelView` keyboard background not using color from palette · GetStream/stream-chat-swiftui@1796263 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1796263

Browse files
committed
Fix ChatChannelView keyboard background not using color from palette
1 parent e33eadb commit 1796263

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,14 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
191191
})
192192
.background(
193193
isIphone ?
194-
Color.clear.background(
195-
TabBarAccessor { _ in
196-
self.tabBarAvailable = utils.messageListConfig.handleTabBarVisibility
197-
}
198-
)
194+
Color(colors.background)
195+
.ignoresSafeArea(.keyboard)
199196
.allowsHitTesting(false)
200197
: nil
198+
).background(
199+
TabBarAccessor { _ in
200+
self.tabBarAvailable = utils.messageListConfig.handleTabBarVisibility
201+
}
201202
)
202203
.padding(.bottom, keyboardShown || !tabBarAvailable || generatingSnapshot ? 0 : bottomPadding)
203204
.ignoresSafeArea(.container, edges: tabBarAvailable ? .bottom : [])

0 commit comments

Comments
 (0)
0