Replies: 1 comment
-
Hi @bugix Regards 1 - You could use SwitchStore and an Enum State instead of traditional navigation. This will just switch the content of the view body. You can add any transition you want when the views are switched. I use it myself for the "Login -> Main" flow in an app. Check out the announcement of SwitchStore here: https://www.pointfree.co/blog/posts/59-announcing-switchstore-for-the-composable-architecture Example code here: https://github.com/pointfreeco/swift-composable-architecture/tree/main/Examples/TicTacToe/tic-tac-toe/Sources. Regarding 2 - I'd like to see the ReducerReader be added to the framework (or whatever it will be called) because then I'll probably add some session data as dependency when the user logs in. Currently I use a dependency with a CurrentValueSubject which I convert to an AsyncStream for monitoring what happens to the session. I guess that won't go away even with injecting a dependency with session data. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I prototyped some code here which should ask the user for a token and navigate to a second feature which uses a dependency that relies on this token.
My questions are:
Beta Was this translation helpful? Give feedback.
All reactions