What problem does it solve?
SwiftUI apps often suffer from duplicated or inconsistent state across views. This Skill provides a structured SSOT (Single Source of Truth) framework to centralize state ownership, ensure unidirectional data flow, and guide architects and reviewers in selecting the right property wrappers and patterns.
Core Features & Use Cases
- SSOT framework for state ownership, derived state, and one-way data flow in SwiftUI.
- Guidance on selecting property wrappers (@State, @Binding, @StateObject, @ObservedObject, @EnvironmentObject) based on ownership.
- Review checklists and anti-patterns to fix state duplication and promote maintainable architectures.
- Reference material in references/ssot.md with practical examples and edge cases.
Quick Start
Review references/ssot.md to understand the SSOT pillars, then apply the recommended patterns by lifting shared state to a common owner and preferring bindings over duplicate local state.