SwiftUI — Interaction Skill
Purpose
Route SwiftUI Animation and Gesture implementation-code tasks to the minimum required Knowledge Contracts.
Routing
Load only the contracts relevant to the task. All paths relative to knowledge/swiftui/.
- Animation start/state -> animation-modifiers.md
- View transitions -> transitions.md, matched-geometry-effect.md
- Custom animatable values -> animatable-values.md
- Multi-phase/keyframe animation -> phase-and-keyframe-animators.md
- Tap/long-press -> tap-and-long-press-gestures.md
- Drag -> drag-gesture.md
- Pinch/rotate -> magnification-and-rotation-gestures.md
- Combining gestures -> gesture-composition.md, gesture-state.md
Never load more than the contracts relevant to the specific question.
For Foundations topics (view/navigation/layout/state), route to
skill.swiftui.foundations instead. For visual/UX design questions
(when/why to animate, which gesture to use), route to
skill.human-interface-guidelines.foundations or
skill.human-interface-guidelines.components.
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.
- Previews and custom
Layoutprotocol conformances — Excluded - Legacy
ObservableObject/NavigationViewmigration — Deferred UIGestureRecognizerand Core Animation — owned byuikit, in itsuikit-interactionskill- Accessibility APIs — owned by
accessibility