TCA provides architecture for building complex, testable features through composable reducers, centralized state management, and side effect handling. The core principle: predictable state evolution with clear dependencies and testable effects.
ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.
| Reducer Structure | Creating new reducers, setting up @Reducer, State, Action, or @ViewAction | | Views - Binding | Using @Bindable, two-way bindings, store.send(), or .onAppear/.task | | Views - Composition | Using ForEach with stores, scoping to child features, or optional children |
Используйте при создании функций с помощью TCA (составная архитектура), структурировании редукторов, управлении состоянием, обработке эффектов, навигации или тестировании функций TCA. Охватывает @Reducer, Store, Effect, TestStore, композицию редуктора и шаблоны TCA. Источник: johnrogers/claude-swift-engineering.