~/talk

Leveraging the Power of State Machines in Swift

Talkat iOS Conf SG 2022 · 2022-01-20..01-21· [swift, frontend-architecture]
slides:none on file

Shows a concrete pattern: build a Swift enum state definition (cases loading data error empty plus an Event enum and mutating handleEvent), wrap it in a state machine class with start and methods like receiveData receiveError reload, use a delegate didChangeState to swap view controllers, and compose child machines (loaded → empty data refresh). Sample projects and code live at bit.ly/statemachines and a 5,000‑line real-world machine proves large machines break easily so composition matters.

AI-written summary · about

  1. 0:00Intro
  2. 0:21School of Swift
  3. 1:34State Machines in Swift
  4. 8:06The 2 essential parts of a state machine
  5. 12:32Part 2: State Machine class
  6. 15:16Integrating into our app
  7. 17:24Child State Machines
  8. 19:55State Definition Enum
  9. 21:03Onboarding Coordinators
  10. 21:37Form Validation
  11. 22:25Accepting Push Notifications
  12. 23:10Other Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.