SwiftState

MIT License
Swift
iOS

1 image

Author

Description

Elegant state machine for Swift.

[Features]

Transition: .State0 => .State1

Try transition: machine <- .State1

Try transition + messaging: machine <- (.State1, "GoGoGo")

Chaining: .State0 => .State1 => .State2

Event: machine <- "WakeUp"

Tags