swiftship/internal/skills/data/visionos/spatial-gestures/SKILL.md
visionOS spatial gesture patterns: eye tracking, hand pinch, drag, rotate, magnify gestures. Use when implementing visionOS input handling or spatial interactions. Triggers: gesture, tap, drag, pinch, rotate, magnify, spatial.
npx skillsauth add abdullah4ai/apple-dev-docs spatial-gesturesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
visionOS uses eye tracking + hand gestures instead of touch.
Model3D(named: "Globe")
.gesture(TapGesture().targetedToAnyEntity().onEnded { value in
handleTap(value.entity)
})
RealityView { content in
// entity setup
}
.gesture(DragGesture().targetedToAnyEntity().onChanged { value in
value.entity.position = value.convert(value.location3D, from: .local, to: .scene)
})
SpatialTapGesture()
.onEnded { value in
handleSpatialTap(at: value.location)
}
Standard SwiftUI gestures work on 2D windows via eye tracking:
Button("Action") { doSomething() }
.hoverEffect() // REQUIRED — visual feedback for eye tracking
Toggle("Setting", isOn: $setting)
.hoverEffect()
.hoverEffect() for eye tracking feedbackTapGesture().targetedToAnyEntity() for 3D entity interactionDragGesture().targetedToAnyEntity() for spatial draggingtesting
Use for 3D games: racing, 3D sports, board games, marble maze, tower defense, bowling. SceneKit + SceneView architecture, 3D scene hierarchy, physics, game loop, primitives, materials, cameras, particles, audio.
documentation
Game UI patterns: SwiftUI HUD overlays on SpriteKit, menus (main/pause/game-over), virtual joystick/d-pad, score displays, health bars, tutorial onboarding.
tools
Download free game sprites/textures/3D models and generate procedural assets. Covers nw_download_asset tool, texture factories, sprite atlas organization, 3D model loading, and programmatic asset creation.
testing
Use for 2D games: arcade, puzzle, sports, ping pong, platformer, shooter, 2D racing. SpriteKit + SpriteView architecture, scene hierarchy, physics, game loop, audio, particles, game feel.