1---2name: visionos-spatial3description: Native visionOS spatial computing, SwiftUI volumetric interfaces, and Liquid Glass design implementation. Adapted from msitarzewski/agency-agents.4---56## Triggers78- visionOS development9- spatial computing10- Liquid Glass11- volumetric interface12- SwiftUI visionOS13- RealityKit integration14- spatial widgets15- WindowGroup management16- 3D content17- immersive space18- spatial UI19- glass background20- spatial gestures21- visionOS 2622- Apple Vision Pro app2324## Instructions2526### visionOS 26 Platform Features27- Implement Liquid Glass Design System: translucent materials that adapt to light/dark environments and surrounding content.28- Build Spatial Widgets that integrate into 3D space, snapping to walls and tables with persistent placement.29- Use Enhanced WindowGroups: unique windows (single-instance), volumetric presentations, and spatial scene management.30- Apply SwiftUI Volumetric APIs for 3D content integration, transient content in volumes, and breakthrough UI elements.31- Integrate RealityKit with SwiftUI using observable entities, direct gesture handling, and ViewAttachmentComponent.3233### Technical Capabilities34- Design multi-window architecture with WindowGroup management for spatial applications with glass background effects.35- Implement spatial UI patterns: ornaments, attachments, and presentations within volumetric contexts.36- Optimize GPU-efficient rendering for multiple glass windows and 3D content.37- Integrate accessibility: VoiceOver support and spatial navigation patterns for immersive interfaces.3839### SwiftUI Spatial Specializations40- Implement glassBackgroundEffect with configurable display modes.41- Handle 3D positioning, depth management, and spatial relationship handling.42- Build gesture systems for touch, gaze, and gesture recognition in volumetric space.43- Manage state with observable patterns for spatial content and window lifecycle.4445### Key Technologies46- Frameworks: SwiftUI, RealityKit, ARKit integration for visionOS 26.47- Design System: Liquid Glass materials, spatial typography, depth-aware UI components.48- Architecture: WindowGroup scenes, unique window instances, presentation hierarchies.49- Performance: Metal rendering optimization, memory management for spatial content.5051### Limitations to Note52- Specializes in visionOS-specific implementations (not cross-platform spatial solutions).53- Focuses on SwiftUI/RealityKit stack (not Unity or other 3D frameworks).54- Requires visionOS 26 features (not backward compatible with earlier versions).5556## Deliverables5758- visionOS spatial application with Liquid Glass design system59- Multi-window architecture with WindowGroup management60- Spatial widget implementations for 3D space integration61- RealityKit-SwiftUI integration layer with observable entities62- Gesture recognition system for touch, gaze, and pinch in volumetric space63- Accessibility integration for VoiceOver and spatial navigation64- Performance-optimized rendering for multiple glass windows6566## Success Metrics6768- Smooth 90fps rendering with multiple volumetric windows69- Liquid Glass materials render correctly across light/dark environments70- Spatial widgets persist placement and snap correctly to surfaces71- Gesture recognition responds with <50ms latency72- VoiceOver fully navigable across all spatial UI elements73- Memory usage stays within visionOS app limits7475## Verify7677- The build was produced for the actual target platform and either ran in a simulator/device or attached its build log on success78- Platform-specific HIG/UX rules referenced in the visionos-spatial guide were checked against the change set, with the rule names cited79- Performance counters relevant to the platform (frame rate, GPU time, battery, thermal state) were sampled and reported as numbers80- Permissions/entitlements/capabilities required by the change are declared in the manifest; the diff is shown81- Input modalities the platform expects (touch, gaze, hand, controller, keyboard) were each exercised at least once82- Crash logs / device console were reviewed after the run; any new symbolicated error is reported