Dismiss and present on presenting UIViewController #3650
Replies: 4 comments 7 replies
-
Hey @v-slobodianiuk, we currently observe the same issue and I wasn't able to find a fix. Did you by any chance a way around that behaviour? |
Beta Was this translation helpful? Give feedback.
-
Set current destination to nil. Add delay about 0.5 s to set the new destination. |
Beta Was this translation helpful? Give feedback.
-
@v-slobodianiuk I believe this is vanilla behavior and reproducible in UIKit if you were to simultaneously dismiss and present a view controller without waiting for it to complete. One workaround is to introduce a delay, as you've done, and another might be to try to group all sheet presentation into a single If you do believe this is a bug with our |
Beta Was this translation helpful? Give feedback.
-
If you do reproduce the issue in vanilla UIKit, consider filing a Feedback with Apple! |
Beta Was this translation helpful? Give feedback.
-
Description
Hello!
I get incorrect behavior when leaving the screen and opening a new one in a modal window. Sometimes everything works correctly, but other times all my windows just close. I wrote a Unit test and a UI test. The UI test sometimes fails.
Here is a link to the repository with an Example project
Steps:
Error:

Checklist
main
branch of this package.Expected behavior
Present CViewController
Actual behavior
Dissmis AViewController
Reproducing project
Example project
The Composable Architecture version information
1.17.1
Destination operating system
iOS 18
Xcode version information
Xcode 16.2
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions