Skip to content
Discussion options

You must be logged in to vote

Hi @y-mimura, while it is completely fine to split out into multiple observes, it is also possible to put it in one and do navigation. Our TicTacToe demo shows how to do this:

if let store = store.scope(state: \.alert, action: \.alert),
alertController == nil
{
alertController = UIAlertController(store: store)
present(alertController!, animated: true, completion: nil)
} else if alertController != nil {
alertController?.dismiss(animated: true)
alertController = nil
}
if let store = store.scope(state:

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@y-mimura
Comment options

@acosmicflamingo
Comment options

@mbrandonw
Comment options

Answer selected by y-mimura
@y-mimura
Comment options

@mbrandonw
Comment options

@y-mimura
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
3 participants