Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

# Upcoming

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

# [4.79.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.79.0)
_May 29, 2025_
Expand Down
11 changes: 6 additions & 5 deletions Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,14 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
})
.background(
isIphone ?
Color.clear.background(
TabBarAccessor { _ in
self.tabBarAvailable = utils.messageListConfig.handleTabBarVisibility
}
)
Color(colors.background)
.ignoresSafeArea(.keyboard)
.allowsHitTesting(false)
: nil
).background(
TabBarAccessor { _ in
self.tabBarAvailable = utils.messageListConfig.handleTabBarVisibility
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this one also have the isIphone check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually removed the isIphone check on the color as well, to improve it on iPad too

)
.padding(.bottom, keyboardShown || !tabBarAvailable || generatingSnapshot ? 0 : bottomPadding)
.ignoresSafeArea(.container, edges: tabBarAvailable ? .bottom : [])
Expand Down
Loading