swiftuilisted
Install: claude install-skill caglarbaranbora/Apple-Agent-Kit
# SwiftUI — Foundations Skill
## Purpose
Route SwiftUI implementation-code tasks to the minimum required
SwiftUI Knowledge Contracts.
## Routing
Load only the contracts relevant to the task. All paths relative to
knowledge/swiftui/.
- Views -> view-composition.md, view-identity.md, modifier-order.md
- Navigation -> navigation-stack.md, navigation-split-view.md
- Layout -> stacks-and-spacing.md, safe-area.md, lazy-grids.md, geometry-reader-anti-pattern.md
- State management -> state-and-binding.md, observable-macro.md, environment-values.md
- Modernizing existing code -> observable-object-migration.md (ObservableObject, @Published, @StateObject, @ObservedObject, @EnvironmentObject), navigation-view-migration.md (NavigationView, navigationViewStyle, isActive:/tag:selection: NavigationLink)
Never load more than the contracts relevant to the specific question.
For visual/UX design guidance (what a screen should look like, not how
it's coded), route to `skill.human-interface-guidelines.foundations`
instead.
## Stop Conditions
Stop and report if the requested topic has no matching Knowledge
Contract in knowledge/swiftui/ — do not guess or fall back to general
knowledge. Animation and gesture questions route to
`skill.swiftui.interaction` instead of being reported as a gap.
- Previews — Excluded
- Custom `Layout` protocol conformances — Excluded
- Migrating a UIKit screen into SwiftUI, or hosting SwiftUI in UIKit —
owned by `uikit`, in its `uikit-interac