spatial-swiftui-developer

Design visionOS SwiftUI scenes integrating RealityKit content and spatial interactions.

60|8|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/tomkrikorian/visionOSAgents --skill spatial-swiftui-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spatial-swiftui-developer
Source: https://github.com/tomkrikorian/visionOSAgents/tree/main/skills/spatial-swiftui-developer
Command: npx skills add https://github.com/tomkrikorian/visionOSAgents --skill spatial-swiftui-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers building visionOS apps often struggle to design and implement SwiftUI scenes that seamlessly embed RealityKit content, bridging between the two frameworks to create cohesive spatial experiences.

Core Features & Use Cases

  • Bridge SwiftUI and RealityKit: Demonstrate how to embed RealityKit content in SwiftUI views and manage data flow between frameworks.
  • Choose presentation surfaces: Guidance on WindowGroup, volumetric windows, and ImmersiveSpace for spatial UI.
  • Integrate RealityKit in SwiftUI: Load RealityKit content, add attachments, and place UI in 3D space using RealityView and Model3D.
  • Spatial interaction patterns: Patterns for SpatialTapGesture and other gestures to interact with 3D content.
  • Lifecycle & async loading: Ensure proper loading and state management without blocking the UI.

Quick Start

  1. Identify the presentation surface (WindowGroup, volumetric window, or ImmersiveSpace).
  2. Decide between RealityView and Model3D for content and how attachments will bridge UI and 3D space.
  3. Load content in RealityView make/update closures and enable spatial interactions.

Frequently Asked Questions about spatial-swiftui-developer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed RealityKit content in SwiftUI views for visionOS?

Choose between WindowGroup, volumetric windows, and ImmersiveSpace based on your spatial UI needs. WindowGroup handles standard windows, volumetric windows display 3D content with depth, and ImmersiveSpace creates fully immersive environments.

What's the best way to handle spatial interactions with 3D content in SwiftUI?

Load RealityKit content asynchronously inside RealityView make and update closures to prevent blocking the UI. This ensures proper state management and lifecycle handling while maintaining smooth user experiences during content loading.

Can I use SwiftUI attachments to place UI controls inside 3D RealityKit scenes?

SwiftUI attachments let you bridge UI controls into 3D RealityKit scenes by binding SwiftUI views to RealityKit entities. This allows standard SwiftUI components to appear positioned within your volumetric or immersive spatial environments.

When should I use RealityView versus Model3D for displaying 3D content in visionOS?

Use Model3D for simple 3D model display and RealityView for complex RealityKit scenes requiring dynamic content, attachments, and spatial interactions. RealityView provides deeper bridging capabilities for managing data flow between SwiftUI and RealityKit.