Closed sadikcoban closed 1 year ago
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 .stack
navigation style for the binding to write correctly and avoid those pops.
I’m going to convert this to a discussion since it doesn’t seem to be a library bug.
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