A Newbie's Guide to The Composable Architecture
summary
Live-coding builds a Pomodoro app with The Composable Architecture: defines State/Action/Reducer, a Store and ViewStore, runs a one-second timer via continuous clock effects and stops it with cancelable effects, scopes a modal child with presentation state and identified array, injects dependencies (clock, UUID, date) so tests use a test clock and deterministic UUID/date, and proves behavior with TestStore assertions — timers append on stop, cancellation works, and unit tests pass without waiting.
AI-written summary · about
chapters (14)
- 0:00Introduction to TCA
- 1:50State management challenges
- 5:00TCA core principles
- 7:14Composition and modularity
- 8:05Setting up the project
- 10:26Integrating the UI
- 14:10Implementing bindings
- 16:40Testing the logic
- 18:24Asynchronous effects
- 22:15Dependency injection
- 25:49Managing lists and data
- 29:22Parent-child communication
- 34:08Complex feature navigation
- 39:22Conclusion and resources
related talks
40mTCA: Path towards Building Better SwiftUI Apps
38mArchitecture Agnostic UI Development
26mJetpack Compose and SwiftUI: A side-by-side comparison
21mIntroducing Combine to iOS without Over"reacting"
36mMVWTF: Demystifying Architecture Patterns
20mDeep dive into Wear OS app architecture
44mRecreate some of the classic prototype implementations on visionOS (live code)
24mArchitecting the Unconventional: A Case Study in Software Design
