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

Skip to content

Commit c03aa36

Browse files
authored
Fix ChatChannelView keyboard background not using color from palette (#845)
* Fix `ChatChannelView` keyboard background not using color from palette * Update CHANGELOG.md * Apply color to iPads as well * Fix E2E Test
1 parent e33eadb commit c03aa36

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33

44
# Upcoming
55

6-
### 🔄 Changed
6+
### 🐞 Fixed
7+
- Fix `ChatChannelView` keyboard background not using color from palette [#845](https://github.com/GetStream/stream-chat-swiftui/pull/845)
78

89
# [4.79.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.79.0)
910
_May 29, 2025_

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

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

0 commit comments

Comments
 (0)
0