NavigationLinkStore misbehaves with multi-level navigation #2297
Unanswered
sadikcoban
asked this question in
Q&A
Replies: 1 comment
-
Unfortunately I believe this is a vanilla SwiftUI bug in navigation links that folks have had to work around since iOS 13. In particular, deep linking multiple layers requires staging the deep linking over time using async delays per layer, and you must also use a I’m going to convert this to a discussion since it doesn’t seem to be a library bug. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am working on a SwiftUI project whose minimum iOS version is iOS 14 and I am using NavigationLinkStore for navigation purposes. However, when I do multi level navigation from a root screen, the second navigation pops itself automatically. Here is the code example:
https://gist.github.com/sadikcoban/56566b0c2970184a151f7d4edcdb5aa7
When the "Tap to see second level child feature" is tapped from ChildView, the SecondLevelChildView appears and disappears automatically, because of the change of ChildFeature state i think. How could I solve this problem?
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
The Composable Architecture version information
prerelease/1.0
Destination operating system
iOS 14
Xcode version information
Xcode 14.3
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions