Build AR experiences on iOS using RealityKit for rendering and ARKit for world tracking. Covers RealityView, entity management, raycasting, scene understanding, and gesture-based interactions. Targets Swift 6.2 / iOS 26+.
AR features require devices with an A9 chip or later. Always verify support before presenting AR UI.
| RealityView | iOS 18+, visionOS 1+ | SwiftUI view that hosts RealityKit content | | RealityViewCameraContent | iOS 18+, macOS 15+ | Content displayed through the device camera | | Entity | All | Base class for all scene objects | | ModelEntity | All | Entity with a visible 3D model | | AnchorEntity | All | Tethers entities to a real-world anchor |
Build augmented reality experiences with RealityKit and ARKit on iOS. Use when adding 3D content with RealityView, loading entities and models, placing objects via raycasting, configuring AR camera sessions, handling world tracking, scene understanding, or implementing entity interactions and gestures. Source: dpearson2699/swift-ios-skills.