File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Sources/StreamChatSwiftUI Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,23 @@ public struct DefaultChatChannelHeader: ToolbarContent {
51
51
}
52
52
53
53
ToolbarItem ( placement: . navigationBarTrailing) {
54
- NavigationLink ( destination: ChatChannelInfoView ( channel: channel) ) {
54
+ ZStack {
55
+ NavigationLink ( destination: LazyView ( ChatChannelInfoView ( channel: channel) ) ) {
56
+ Rectangle ( )
57
+ . fill ( Color ( colors. background) )
58
+ . contentShape ( Rectangle ( ) )
59
+ . frame ( width: 36 , height: 36 )
60
+ . clipShape ( Circle ( ) )
61
+ . offset ( x: 8 )
62
+ }
63
+
55
64
ChannelAvatarView (
56
65
avatar: headerImage,
57
66
showOnlineIndicator: onlineIndicatorShown,
58
67
size: CGSize ( width: 36 , height: 36 )
59
68
)
60
69
. offset ( x: 8 )
70
+ . allowsHitTesting ( false )
61
71
}
62
72
}
63
73
}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public struct AvatarView: View {
45
45
46
46
public var body : some View {
47
47
Image ( uiImage: avatar)
48
+ . renderingMode ( . original)
48
49
. resizable ( )
49
50
. aspectRatio ( contentMode: . fill)
50
51
. frame (
You can’t perform that action at this time.
0 commit comments