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. Let’s learn how to improve the state management of our View Controller through the use of an Enumeration. This same technique can be applied to other parts of your code as well, improving the maintainability of your code by clearly describing the states, as well as how to transition between them.
After this video you will know how to build a state machine using enumerations in Swift and how to apply that to your code.
Basic knowledge or experience building iOS applications is recommended.
For the More Curious...View Controller Programming Guide for iOS: The Role of View Controllers
Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.
Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.