Replies: 1 comment 1 reply
-
Hi @crayment, yeah this is the intended behavior. We could probably improve the docs here, but But, If you need to know when the alert is dismissed in all situations, you could try using the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the new navigation patterns for alerts and I'm seeing a behaviour that was a bit surprising and I want to verify if it is expected or not.
The
.alert(.dismiss)
action is only received when using an alert button that does not send any other action. Run below example in a preview (setup for Xcode 15) to see what I mean.The example will either print
.alert(.presented(.ok)):
OR.alert(.dismiss)
but never both. This makes the dismiss action less useful than I expected, and logic for when the alert is dismissed at all (like presenting a next alert in a queue) more painful.Beta Was this translation helpful? Give feedback.
All reactions