Replies: 4 comments 2 replies
-
Hi @jondlew, I'm not sure I understand the issue. |
Beta Was this translation helpful? Give feedback.
-
Sorry -- brainfart. Replace all iOS 14/15 with iOS 16/17! So NavigationStack is working on iOS 17, but stopped working on iOS 16. Clearly still living in the past -- thanks! |
Beta Was this translation helpful? Give feedback.
-
It looks like you forgot to use public var body: some ReducerOf<Self> {
Reduce { state, action in
// ...
}
.forEach(\.path, action: \.path) {
Path()
}
} That should fix things. Since this isn't a problem with the library I am going to convert it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Yes, I just noticed this, and it does fix the iOS 17 issue with the back button. The navigation is still broken in iOS 16, however. Can you please double check this under iOS 16? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Description
NavigationStack(path:root:destination)
has stopped working on iOS 16.Navigation using this method still works under observation-beta, but has stopped working on main.
I've linked to a sample project exhibiting the issue. Additionally, the behavior on iOS 17 seems strange, as the state.path doesn't seem to be popped when using the back navigation button.
Checklist
main
branch of this package.Expected behavior
Tap on a list item to navigate to detail
Actual behavior
No navigation occurs on iOS 16.
On iOS 17, navigation works, but the navigation path is not popped when using the back button or swipe to go back. Tapping on multiple list items causes the stack to grow, and you have to navigate back multiple times to reach the list view.
Steps to reproduce
Here is a project that exhibits the issue: NavigationStackTester
The Composable Architecture version information
main
Destination operating system
iOS 16 and iOS 17
Xcode version information
15.2
Swift Compiler version information
No response
Beta Was this translation helpful? Give feedback.
All reactions