swiftui-ui-patterns
Installation
SKILL.md
SwiftUI UI Patterns
Quick Start
Choose a track based on your goal:
Existing project
- Identify the feature or screen and the primary interaction model (list, detail, editor, settings, tabbed).
- Find a nearby example in the repo with
rg "TabView\("or similar, then read the closest SwiftUI view. - Apply local conventions: prefer SwiftUI-native state, keep state local when possible, and use environment injection for shared dependencies.
- Build the view with small, focused subviews and SwiftUI-native data flow.
New project scaffolding
- Start with TabView + NavigationStack + sheets wiring.
- Add a minimal
AppTabandRouterPathbased on the provided skeletons. - Expand the route and sheet enums as new screens are added.