File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ public struct DefaultChatChannelHeader: ToolbarContent {
6464 resignFirstResponder ( )
6565 isActive = true
6666 } label: {
67- Rectangle ( )
68- . fill ( Color ( colors . background ) )
69- . contentShape ( Rectangle ( ) )
70- . frame ( width: 36 , height: 36 )
71- . clipShape ( Circle ( ) )
72- . offset ( x: 8 )
67+ ChannelAvatarView (
68+ avatar : headerImage ,
69+ showOnlineIndicator : onlineIndicatorShown ,
70+ size : CGSize ( width: 36 , height: 36 )
71+ )
72+ . offset ( x: 4 )
7373 }
7474 . accessibilityLabel ( Text ( L10n . Channel. Header. Info. title) )
7575
@@ -79,15 +79,6 @@ public struct DefaultChatChannelHeader: ToolbarContent {
7979 EmptyView ( )
8080 }
8181 . accessibilityHidden ( true )
82-
83- ChannelAvatarView (
84- avatar: headerImage,
85- showOnlineIndicator: onlineIndicatorShown,
86- size: CGSize ( width: 36 , height: 36 )
87- )
88- . offset ( x: 8 )
89- . allowsHitTesting ( false )
90- . accessibilityHidden ( true )
9182 }
9283 . accessibilityIdentifier ( " ChannelAvatarView " )
9384 }
You can’t perform that action at this time.
0 commit comments