Replies: 1 comment
-
Haven't had a chance to dive in too deeply, but this looks like it may be a SwiftUI bug with |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello :)
We have a situation where
@Dependency(\.dismiss)
works fine if scenes are navigated into by the user but not if navigated into through deep-linking. Dismissing by using@Environment(\.dismiss)
works in both cases. I built a small toy app (attached) to demonstrate.In the screen recording, you see that deep-linking from the root to A to B then tapping the dismiss button that uses
@Environment(\.dismiss)
works in both B then A. But deep-linking from the root to A to B then tapping the dismiss button that uses@ Dependency(\.dismiss)
, in B, does not work.Yet, navigating from the root to A then to B one scene at a time (tapping the "Show Next Scene" button), then tapping either dismiss button works fine in both B and A (this isn't shown in the screen recording, to save on space).
Thanks for taking the time to take a look.
YANTP.zip
Untitled.mp4
Beta Was this translation helpful? Give feedback.
All reactions