Dismiss and Alert ends with strange behaviour #1993
Unanswered
mpiotrowskibsg
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@mpiotrowskibsg Our integration suite doesn't have a ton of documentation at the moment, but it shouldn't be viewed as "case studies" of working examples. It doesn't just exercise happy paths, but also exercises "unhappy" paths that sometime demonstrate some unfortunate vanilla SwiftUI behavior. In this case, SwiftUI itself just doesn't support programmatically swapping a sheet with an alert. The workaround most folks seem to apply is to space out dismissal and presentation using delays. I'm going to convert this issue to a discussion since it's not a bug with the library, but rather a current behavior of vanilla SwiftUI. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It seems that there is issue with presenting and dismissing in new navigation API. Checking Integration app and new Presentation API I can see issue where I use
Dismiss and Alert
. It ends with just dismissing and console error. It also makes next presentation broken because it is presented and automatically dismissed.Checklist
main
branch of this package.Expected behavior
Actual behavior
Steps to reproduce
The Composable Architecture version information
prerelease/1.0
Destination operating system
iOS 16.1
Xcode version information
14.1
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions