Skip to content
Discussion options

You must be logged in to vote

Take a look at the Tic-Tac-Toe demo that comes with the repo. It has both SwiftUI and UIKit implementations that share the same domain code.

The LoginViewController has an example of pushing a view controller based off optional state here:

self.store
.scope(state: \.twoFactor, action: Login.Action.twoFactor)
.ifLet(
then: { [weak self] twoFactorStore in
self?.navigationController?.pushViewController(
TwoFactorViewController(store: twoFactorStore),
animated: true
)
},
else: { [weak self] in
guard let

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@andriyslyusar
Comment options

Answer selected by michaelfransen
Comment options

You must be logged in to vote
2 replies
@tgrapperon
Comment options

@michaelfransen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants