What problem does it solve?
This Skill solves the problem of inconsistent, fragile SwiftUI UI implementations by providing component-level, example-driven guidance for building views that scale with navigation, sheets, and modern state management.
Core Features & Use Cases
- Navigation & tabbed architecture: guidance for structuring per-tab
NavigationStack routing patterns and keeping navigation history predictable.
- State ownership & data flow: clear rules for when to use
@State, @Binding, @Environment, and @Observable, including iOS 17 vs iOS 16 fallbacks.
- Sheets & presentation patterns: enum-driven, centralized sheet routing that avoids brittle boolean combinations and keeps modals owning their confirm/cancel actions.
- Async loading & lifecycle: recommends
.task vs .task(id:), cancellation-safe async work, and explicit loading/error UI states.
- Responsive layout composition: guidance for building declarative iOS interfaces using stacks and grids, with attention to performance and render-cost guardrails.
Quick Start
Use the swiftui-ui-patterns skill to refactor a SwiftUI screen into small composable subviews with correct state ownership and centralized navigation/sheet patterns.