State machines in Swift September 25, 2016 A quick post about how modeling your problem as a state machine can help stomp out bugs.