Functional iOS Architecture in the SwiftUI Era
summary
A follow-up to a 2016 design showing a homegrown Harvest-style library that pairs SwiftUI and Combine to build a functional iOS architecture. It explains using optics (lenses and prisms / CasePaths) to transform and compose reducers and view state, and compares Composable Architecture and Bow-arch concretely — focusing on action propagation (child→parent dispatch vs. multi-store), how CasePaths create prisms via reflection, and how optics reduce boilerplate while avoiding duplicated updates in real SwiftUI apps.
AI-written summary · about
chapters (12)
- 0:00SwiftUI dawn review
- 2:01SwiftUI & Combine reactive UI
- 3:29Harvest architecture side effects
- 6:21Optics: lenses and prisms
- 9:18Category theory type conversion
- 15:48Composable architecture overview
- 19:03Case paths type-safe state
- 21:14Bohr Spain monad UI
- 23:33Comonads state and view
- 34:55Effect components side effects
- 37:05Freemonad UI architecture
- 38:51Summary: FP and SwiftUI
related talks
25mPrepping For a SwiftUI Future
49mWhy SwiftUI?
42mThe Evolution of Presentation Patterns in SwiftUI
21mSwiftUI & Redux
41mWhen You Can’t Go All In On SwiftUI, Build a Hybrid UI App Instead!
35mSwiftUI Performance for Demanding Apps
36mData flow in SwiftUI - from @State to @Observable...
19mThe Art of Functional State Management for iOS Apps
