ManagedNavigationStack nested in TabView itself nested in a Main ManagedNavistationStack #103
Unanswered
alexandreadriaens
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
See if this helps... https://hmlongco.github.io/Navigator/documentation/navigatorui/navigationtree |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I'm pretty sure what you've described is a swiftui anti-pattern. NavigationStacks(ManagedNavigationStack) should live inside TabView not the other way around. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi,
First of all thanks for creating this nice library.
However, I'm bumping on a problem on my side, and I'm wondering how to deal with it.
For my app, I have created a main ManagedNavigationStackView that embed my whole app. And then inside it I have a TabView, and for each element of the tab, I have another ManagerNavigationStackView. In this inner one, I added a view, let's say TestView. In this TestView while trying to call navigator.navigate() with push NavigationMethod, the push is done on the main stack and not the inner one.
Why? Is it a known limitation of Navigator? Or I'm doing something bad?
I want to be able to have a main stack view in order to push on the main app if needed (pushing a WebView) but also pushing a view in the inner stack when I want to keep displaying the tabBar.
Thanks in advance for your help !
Beta Was this translation helpful? Give feedback.
All reactions