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
There is a bug in the modal presentation behavior when replacing child views. Specifically:
When a modal is presented.
The modal displays a first child.
An attempt is made to replace the first child with a second child.
The replacement operation is not working as expected. The behavior is inconsistent and incorrect, resulting in improper display or failure to update the modal's content.
Note: this is a UIKit project.
Checklist
I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
If possible, I've reproduced the issue using the main branch of this package.
Description
There is a bug in the modal presentation behavior when replacing child views. Specifically:
The replacement operation is not working as expected. The behavior is inconsistent and incorrect, resulting in improper display or failure to update the modal's content.
Note: this is a UIKit project.
Checklist
mainbranch of this package.Expected behavior
The first child should be dismissed, and the second child should be presented.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-09.at.18.00.02.mp4
Actual behavior
Sometimes (randomly), the parent modal is dismissed when trying to present the second child.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-09.at.17.59.49.mp4
Steps to reproduce
Sample project: https://github.com/ysmaliak/tca-navigation-test
The Composable Architecture version information
1.14.0
Destination operating system
iOS 17.5
Xcode version information
15.4
Swift Compiler version information