diff --git a/CHANGELOG.md b/CHANGELOG.md index 38bcf6868..978f4c84d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix showing a double error indicator when sending attachments without any text [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799) - Fix showing read indicator when message failed to be sent [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799) - Fix not showing sending indicator when message is in sending state [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799) +- Fix empty accessibility button shapes shown in navigation link views [#800](https://github.com/GetStream/stream-chat-swiftui/pull/800) # [4.76.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.76.0) _March 31, 2025_ diff --git a/DemoAppSwiftUI/ChannelHeader/CustomChannelHeader.swift b/DemoAppSwiftUI/ChannelHeader/CustomChannelHeader.swift index b941bbe8c..c91c87874 100644 --- a/DemoAppSwiftUI/ChannelHeader/CustomChannelHeader.swift +++ b/DemoAppSwiftUI/ChannelHeader/CustomChannelHeader.swift @@ -78,6 +78,7 @@ struct CustomChannelModifier: ChannelListHeaderViewModifier { } label: { EmptyView() } + .opacity(0) // Fixes showing accessibility button shape NavigationLink(isActive: $isNewChatShown) { NewChatView(isNewChatShown: $isNewChatShown) @@ -85,6 +86,7 @@ struct CustomChannelModifier: ChannelListHeaderViewModifier { EmptyView() } .isDetailLink(UIDevice.current.userInterfaceIdiom == .pad) + .opacity(0) // Fixes showing accessibility button shape .alert(isPresented: $logoutAlertShown) { Alert( title: Text("Sign out"), diff --git a/DemoAppSwiftUI/PinChannelHelpers.swift b/DemoAppSwiftUI/PinChannelHelpers.swift index e2f43f393..434bb46e1 100644 --- a/DemoAppSwiftUI/PinChannelHelpers.swift +++ b/DemoAppSwiftUI/PinChannelHelpers.swift @@ -169,6 +169,7 @@ struct DemoAppChatChannelNavigatableListItem: View { } label: { EmptyView() } + .opacity(0) // Fixes showing accessibility button shape } } diff --git a/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift b/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift index 4013d866c..a0e866366 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift @@ -134,6 +134,7 @@ public struct ChatChannelView: View, KeyboardReadable { } label: { EmptyView() } + .opacity(0) // Fixes showing accessibility button shape } .accentColor(colors.tintColor) .overlay( diff --git a/Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelNavigatableListItem.swift b/Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelNavigatableListItem.swift index 105c029bc..38289155d 100644 --- a/Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelNavigatableListItem.swift +++ b/Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelNavigatableListItem.swift @@ -61,6 +61,7 @@ public struct ChatChannelNavigatableListItem: View { } label: { EmptyView() } + .opacity(0) // Fixes showing accessibility button shape } } } diff --git a/Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListNavigatableItem.swift b/Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListNavigatableItem.swift index 07d80cd9e..770684172 100644 --- a/Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListNavigatableItem.swift +++ b/Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListNavigatableItem.swift @@ -44,6 +44,7 @@ public struct ChatThreadListNavigatableItem