File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
StreamChatSwiftUITests/Tests/ChatChannel Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55
66### 🐞 Fixed
77- Show attachment title instead of URL in the ` FileAttachmentPreview ` view [ #930 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/930 )
8+ - Fix overriding title color in ` ChannelTitleView ` [ #931 ] ( https://github.com/GetStream/stream-chat-swiftui/pull/931 )
89
910# [ 4.86.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.86.0 )
1011_ August 21, 2025_
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ public struct ChannelTitleView: View {
145145 VStack ( spacing: 2 ) {
146146 Text ( channelNamer ( channel, currentUserId) ?? " " )
147147 . font ( fonts. bodyBold)
148+ . foregroundColor ( Color ( colors. text) )
148149 . accessibilityIdentifier ( " chatName " )
149150
150151 if shouldShowTypingIndicator {
Original file line number Diff line number Diff line change @@ -76,4 +76,21 @@ class ChatChannelHeader_Tests: StreamChatTestCase {
7676 // Then
7777 assertSnapshot ( matching: view, as: . image( perceptualPrecision: precision) )
7878 }
79+
80+ func test_channelTitleView_theme_snapshot( ) {
81+ // Given
82+ let channel = ChatChannel . mockDMChannel ( name: " Test channel " )
83+
84+ // When
85+ adjustAppearance { appearance in
86+ appearance. colors. text = . red
87+ appearance. colors. subtitleText = . blue
88+ }
89+ let size = CGSize ( width: 300 , height: 100 )
90+ let view = ChannelTitleView ( channel: channel, shouldShowTypingIndicator: true )
91+ . applySize ( size)
92+
93+ // Then
94+ assertSnapshot ( matching: view, as: . image( perceptualPrecision: precision) )
95+ }
7996}
You can’t perform that action at this time.
0 commit comments