Skip to content

Commit 1a93343

Browse files
authored
Fix action sheet not showing when discarding Poll creation on iOS 26 (#1027)
* Fix action sheet not showing when discarding Poll creation on iOS 26 * Update CHANGELOG.md
1 parent 8903e77 commit 1a93343

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
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
### 🐞 Fixed
1111
- Fix composer not being locked after the channel was frozen [#1015](https://github.com/GetStream/stream-chat-swiftui/pull/1015)
1212
- Fix `PollOptionAllVotesView` not updated on poll cast events [#1025](https://github.com/GetStream/stream-chat-swiftui/pull/1025)
13+
- Fix action sheet not showing when discarding Poll creation on iOS 26 [#1027](https://github.com/GetStream/stream-chat-swiftui/pull/1027)
1314

1415
# [4.90.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.90.0)
1516
_October 08, 2025_

Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ public struct CreatePollView: View {
175175
} label: {
176176
Text(L10n.Alert.Actions.cancel)
177177
}
178+
.actionSheet(isPresented: $viewModel.discardConfirmationShown) {
179+
ActionSheet(
180+
title: Text(L10n.Composer.Polls.actionSheetDiscardTitle),
181+
buttons: [
182+
.destructive(Text(L10n.Alert.Actions.discardChanges)) {
183+
presentationMode.wrappedValue.dismiss()
184+
},
185+
.default(Text(L10n.Alert.Actions.keepEditing))
186+
]
187+
)
188+
}
178189
}
179190

180191
ToolbarItem(placement: .principal) {
@@ -195,17 +206,6 @@ public struct CreatePollView: View {
195206
}
196207
}
197208
.navigationBarTitleDisplayMode(.inline)
198-
.actionSheet(isPresented: $viewModel.discardConfirmationShown) {
199-
ActionSheet(
200-
title: Text(L10n.Composer.Polls.actionSheetDiscardTitle),
201-
buttons: [
202-
.destructive(Text(L10n.Alert.Actions.discardChanges)) {
203-
presentationMode.wrappedValue.dismiss()
204-
},
205-
.cancel(Text(L10n.Alert.Actions.keepEditing))
206-
]
207-
)
208-
}
209209
.alert(isPresented: $viewModel.errorShown) {
210210
Alert.defaultErrorAlert
211211
}

0 commit comments

Comments
 (0)