New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Swift RealityKit guide for iOS AR, covering RealityView, USDZ loading, plane anchoring, and entity versus ARKit raycasts.

skills.sh installs
3.5K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers RealityView setup, USDZ entity loading, plane and world anchoring, raycasting, and entity gestures for iOS AR
  • Includes code patterns for RealityView make and update closures, AnchorEntity targets, and CollisionComponent with InputTargetComponent
  • Enforces a split between RealityKit hitTest on virtual entities and ARKit ARSession.raycast(_:) for real-world surfaces
  • Designed for Swift developers targeting iOS 26 and later who need to check AR support before presenting AR UI

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill realitykit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

RealityKit

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.3 / iOS 26+.

Contents

Setup

Project Configuration

  1. Add NSCameraUsageDescription to Info.plist
  2. On iOS, RealityViewCameraContent displays an AR camera view by default (iOS 18+, macOS 15+); use .virtual camera mode for explicit non-AR fallback
  3. No entitlement is required for basic AR. If AR is core to the app, add the arkit required-device capability; otherwise gate AR UI with isSupported.

Device Requirements

Check the exact AR configuration's isSupported value before presenting AR UI.

import ARKit

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Mobile Apps, 3D, CAD & Modeling
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Realitykit

More Mobile Apps