The Frontier logo The Frontier logo
David House

Creating a State Machine using Swift Enumerations

David House | Feb 05, 2018

How do you create a state machine using Swift Enumerations?

As View Controllers become more complex, the need to manage the state of the view becomes more important. In this video we will discuss how to use a state machine to manage our views state. After this video you will know how to build a state machine using enumerations in Swift and how to apply that to your code.

View Controller Programming Guide for iOS: The Role of View Controllers
The Swift Programming Language (Swift 4.0.3): Enumerations
State Machines – Basics of Computer Science