Intermediate iOS Design Patterns, Episode 16: Use State | Kodeco, the new raywenderlich.com

Practice using the state pattern in a real-world app.


This is a companion discussion topic for the original entry at https://www.kodeco.com/1941302-intermediate-ios-design-patterns/lessons/16

Not sure if this has happened due to the change in the OS or something else, but copying the code exactly, the bug of being able to draw during the animation is still present. This happens because the animation completion block in AnimateState is called as soon as the first layer finishes the animation instead of waiting for all of the animates to finish, so the application transitions back to the AcceptInputState while still animating.

Each iteration of Swift and Xcode can break pre-existing code. There are reasonably frequent updates to all documents and posts, which will fix these issues.

@jrg.developer please see above