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 {
64
64
resignFirstResponder ( )
65
65
isActive = true
66
66
} 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 )
73
73
}
74
74
. accessibilityLabel ( Text ( L10n . Channel. Header. Info. title) )
75
75
@@ -79,15 +79,6 @@ public struct DefaultChatChannelHeader: ToolbarContent {
79
79
EmptyView ( )
80
80
}
81
81
. 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 )
91
82
}
92
83
. accessibilityIdentifier ( " ChannelAvatarView " )
93
84
}
You can’t perform that action at this time.
0 commit comments