ReactKit / SwiftState

Elegant state machine for Swift.
MIT License
904 stars 93 forks source link

Request for improvement #40

Closed sluramod closed 8 years ago

sluramod commented 8 years ago

Currently, there are 2 types of handlers in StateMachine:

Suppose I want to have a handler that does not care how I got to from one state to another - it could be via state -> state transition or based on some event.

It would be nice if there was a way to handle this scenario with a single handler.

inamiy commented 8 years ago

@sluramod Hi, thanks for your idea :sparkles::bulb::sparkles: I have just implemented a rough sketch it in #41, so please take a look and tell me your thoughts!

inamiy commented 8 years ago

Done in #41!