Replies: 1 comment 7 replies
-
@pepejeria The main two components you'll want to work with enum state are:
The main example of using these tools in our repo is the Tic-Tac-Toe demo, which holds its root state in an enum for logged-in/logged-out flows:
|
Beta Was this translation helpful? Give feedback.
7 replies
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.
-
I am trying to figure out to show different type of Views in a List based on the model's
type
:I would in vanilla SwiftUI use the following approach:
How can I achieve the same with TCA?
Different Views could also mean different functionality, meaning different type of reducers. How can this be achieved?
Beta Was this translation helpful? Give feedback.
All reactions