-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftUI's native dismiss environment value does not work from fullscreen modal with navigation #86
Comments
Thanks for raising this issue @CorbinMontague ! To update you, I can reproduce the bug, but I'm not yet sure why it's happening. |
@johnpatrickmorgan It looks like the issue is tied to the content being wrapped in a In |
hmm I'm seeing some kind of hang when using |
Hi @CorbinMontague , yes that is indeed the issue that was holding me back from making that API public. Navigation seems to trigger an infinite loop currently. |
There is a bug where attempting to use SwiftUI's native dismiss environment value does not work from a fullscreen modal presented with navigation:
foo.presentCover(Screen.modalView, withNavigation: true)
. This bug is present in both the 0.8.1 and 0.8.2 versions (I haven't checked any other versions). Workaround is to useFlowPathNavigator
or a reference to theFlowPath
associated with theFlowStack
because FlowStacks dismiss APIs still work as expected. See code example below:The text was updated successfully, but these errors were encountered: