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.