The Art of Functional State Management for iOS Apps
summary
Argues that immutability and pure functions reduce bugs and make state testable, and demonstrates using Combine publishers and operators (Published, CurrentValueSubject, map/filter/combineLatest, cancellables) to replace manual MVVM wiring. Builds a working counter app and network-backed user profile example where Combine auto-updates labels and handles async network responses and errors, removing manual callbacks. Notes tradeoffs: initial learning curve, more code in places, harder debugging, and fewer third‑party libraries compared to older patterns.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:54Functional programming fundamentals
- 5:09Reactive programming explained
- 7:41Combine framework overview
- 11:11Counter app with Combine
- 13:18User profile with Combine
- 16:27Key takeaways and conclusion
- 18:51Q&A
related talks
28mThe Art of Functional State Management
34mThe Art of Functional State Management
42mSwiftUI & Combine
40mFunctional iOS Architecture in the SwiftUI Era
36mUnderstanding Combine
39mCombine! All the things
35mWhy "The Composable Architecture" Matters for iOS App Development
44mState Machines and Hopeful Dreams
