Why "The Composable Architecture" Matters for iOS App Development
summary
Introduces The Composable Architecture (swift-composable-architecture) for iOS app development and demonstrates concrete Swift code: a simple counter, two composed counters, and a counter with a 1s delayed increment plus a “number fact” web API. Shows reducer composition using scope, effects implemented as Combine publishers that map back to actions, dependency injection via an environment, and tests with TestStore and a test scheduler by swapping real effects for stubs to keep state changes deterministic and avoid a giant global reducer.
AI-written summary · about
chapters (7)
- 0:00Introduction to TCA
- 2:52TCA features basics
- 11:12Side effects and Environment
- 17:16ViewStore internals
- 20:51Testing in TCA
- 27:04TCA pros and cons
- 30:31Introduction
related talks
40mTCA: Path towards Building Better SwiftUI Apps
25mPrepping For a SwiftUI Future
35mA Crash Course of The Composable Architecture
28mThe Art of Functional State Management
19mThe Art of Functional State Management for iOS Apps
49mWhy SwiftUI?
42mSwiftUI & Combine
21mIntroducing Combine to iOS without Over"reacting"
