Skip to content

Commit c413786

Browse files
authored
Fix accessibility button shapes shown in navigation link views (#800)
1 parent 568942d commit c413786

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010
- Fix showing a double error indicator when sending attachments without any text [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799)
1111
- Fix showing read indicator when message failed to be sent [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799)
1212
- Fix not showing sending indicator when message is in sending state [#799](https://github.com/GetStream/stream-chat-swiftui/pull/799)
13+
- Fix empty accessibility button shapes shown in navigation link views [#800](https://github.com/GetStream/stream-chat-swiftui/pull/800)
1314

1415
# [4.76.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.76.0)
1516
_March 31, 2025_

DemoAppSwiftUI/ChannelHeader/CustomChannelHeader.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ struct CustomChannelModifier: ChannelListHeaderViewModifier {
7878
} label: {
7979
EmptyView()
8080
}
81+
.opacity(0) // Fixes showing accessibility button shape
8182

8283
NavigationLink(isActive: $isNewChatShown) {
8384
NewChatView(isNewChatShown: $isNewChatShown)
8485
} label: {
8586
EmptyView()
8687
}
8788
.isDetailLink(UIDevice.current.userInterfaceIdiom == .pad)
89+
.opacity(0) // Fixes showing accessibility button shape
8890
.alert(isPresented: $logoutAlertShown) {
8991
Alert(
9092
title: Text("Sign out"),

DemoAppSwiftUI/PinChannelHelpers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ struct DemoAppChatChannelNavigatableListItem<ChannelDestination: View>: View {
169169
} label: {
170170
EmptyView()
171171
}
172+
.opacity(0) // Fixes showing accessibility button shape
172173
}
173174
}
174175

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
134134
} label: {
135135
EmptyView()
136136
}
137+
.opacity(0) // Fixes showing accessibility button shape
137138
}
138139
.accentColor(colors.tintColor)
139140
.overlay(

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelNavigatableListItem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public struct ChatChannelNavigatableListItem<Factory: ViewFactory, ChannelDestin
6161
} label: {
6262
EmptyView()
6363
}
64+
.opacity(0) // Fixes showing accessibility button shape
6465
}
6566
}
6667

Sources/StreamChatSwiftUI/ChatChannelList/SearchResultsView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ struct SearchResultView<Factory: ViewFactory>: View {
113113
} label: {
114114
EmptyView()
115115
}
116+
.opacity(0) // Fixes showing accessibility button shape
116117
}
117118
}
118119
}

Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListNavigatableItem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public struct ChatThreadListNavigatableItem<ThreadListItem: View, ThreadDestinat
4444
} label: {
4545
EmptyView()
4646
}
47+
.opacity(0) // Fixes showing accessibility button shape
4748
}
4849
.foregroundColor(.black)
4950
}

0 commit comments

Comments
 (0)