Slide 27
Slide 27 text
ભҠάϥϑΛఆٛ
let registrationGraph: [Transition] = [
Transition(from: .root, to: .registerRoot, by: DefaultEvent.showRegisterRoot),
Transition(from: .registerRoot, to: .profileRegister, by: DefaultEvent.registerWithFacebook),
Transition(from: .registerRoot, to: .startWithMercari, by: DefaultEvent.startWithMercari),
Transition(from: .registerRoot, to: .emailLogin, by: DefaultEvent.loginWithEmail),
Transition(from: .registerRoot, to: .atteLogin, by: DefaultEvent.loginWithAtte),
Transition(from: .registerRoot, to: .home, by: DefaultEvent.loginAndShowHome),
]
let registrationMachine = Automaton(
initialState: .root,
transitions: registrationGraph
)