Replies: 1 comment 3 replies
-
Hi @dehlen, a few comments:
This is correct, however I would recommend putting the
This is just a problem with There are a few approaches you can take:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently struggling with the way navigation should work when building a tab based application.
I structured my project pretty much like the isowords codebase (meaning a separate Swift Package per feature f.e).
In my AppFeature package I hold onto the state of the different tabs (lets assume there are only 2 tabs to shorten the code samples):
I now want to introduce a NavigationStack per tab. I would assume I need one StackState per tab, in order to be able to distinguish the navigation path for the tabs, sth. like
I then can use the path to drive the NavigationStack:
However since the path is now part of the AppFeature reducer. How can I navigate from the FeedView to the ChildView f.e?
Inside my FeedView I would create a NavigationLink but since the Path reducer is part of the AppFeature the FeedView does not know it and I would welcome any hint on best practice here:
One way to solve this is to make Path a separate package which would be a dependency of AppFeature and FeedFeature I think. However is this the right approach? I am wondering if this is best practice here.
Beta Was this translation helpful? Give feedback.
All reactions