Dismissing Alerts when using an "Item" binding #464
Unanswered
ryanbooker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This may be a raw SwiftUI question: Should setting an
Alert
item binding back tonil
dismiss an alert?i.e. An action occurs and the alert is set and displayed (working! :)). A second action can occur in the background, if it occurs the alert needs to vanish. However setting it back to
nil
doesn't do anything…Using a bool instead works as expected…
Is this just how SwiftUI works?
Beta Was this translation helpful? Give feedback.
All reactions