Closed juliensagot closed 1 month ago
Why is present
in an observe
closure? Isn't the purpose of UIBindable
to handle this heavy-lifting now? It seems like it could be the nested observe
behavior that is causing issues.
Why is
present
in anobserve
closure? Isn't the purpose ofUIBindable
to handle this heavy-lifting now? It seems like it could be the nestedobserve
behavior that is causing issues.
Oh god you're right 🤦♂️ Thanks a ton! That was the culprit.
@juliensagot No problem! Glad it was an easy fix! :)
Description
Presenting a confirmation dialog with the
observe
closure in UIKit doesn’t work as expected. It is automatically dismissed after being presented. Further attempts to present it will result in a warning in the console:Notes
The sample project works perfectly without TCA (using just swift-navigation), which is why I’m opening an issue on this project rather than on
swift-navigation
.Checklist
main
branch of this package.Expected behavior
The confirmation dialog should not automatically be dismissed after being presented.
Actual behavior
The confirmation dialog is automatically dismissed after it is presented.
Steps to reproduce
https://github.com/user-attachments/assets/25e0344c-2214-483b-8a64-58009faa3734
The Composable Architecture version information
1.14.0
andmain
Destination operating system
iOS 17.0
Xcode version information
16.0 beta 6 (16A5230g)
Swift Compiler version information