Creating a State Machine using Swift Enumerations

By David House on Feb 05, 2019


About

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
The Swift Programming Language (Swift 4.0.3): Enumerations
State Machines – Basics of Computer Science
BNR Guide to iOS
BNR Guide to Swift
iOS & Swift Courses

Transcript

Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Downloads

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Comments