You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that onDismiss is always executed when a presented UIAlertController is dismissed.
Actual behavior
I never see a print statement or have the debugger stop at the breakpoint in the onDismiss closure.
Steps to reproduce
If you run the CaseStudies app in this repository and go to ConciseEnumNavigation, you'll see that if you try and open an alert and then select "Ok", you cannot open it again.
SwiftUI Navigation version information
No response
Destination operating system
iOS 18.1
Xcode version information
Xcode 16.2
Swift Compiler version information
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
The text was updated successfully, but these errors were encountered:
Description
When using
present(item:content:)
, theonDismiss
function is not executed:Checklist
main
branch of this package.Expected behavior
I expect that
onDismiss
is always executed when a presentedUIAlertController
is dismissed.Actual behavior
I never see a print statement or have the debugger stop at the breakpoint in the
onDismiss
closure.Steps to reproduce
If you run the CaseStudies app in this repository and go to
ConciseEnumNavigation
, you'll see that if you try and open an alert and then select "Ok", you cannot open it again.SwiftUI Navigation version information
No response
Destination operating system
iOS 18.1
Xcode version information
Xcode 16.2
Swift Compiler version information
The text was updated successfully, but these errors were encountered: