SwiftUI, RealityKit and ARKit: the visionOS tech stack explained

Windows, entities, anchors: how SwiftUI, RealityKit, Reality Composer Pro and ARKit share the work in an Apple Vision Pro app — with code you can read in two minutes.

DevelopmentBy Beforz Studio4 min read
A MacBook showing code on a wooden desk, next to a notebook, an iPhone and a camera lens
Photo: AltumCode / Unsplash

A visionOS app is a team of frameworks. SwiftUI draws the interface and declares the scenes; RealityKit renders and simulates 3D content; Reality Composer Pro is where that content is assembled; ARKit lets the app understand the room around the person. Here is what each one does, what changed in visionOS 27, and how to choose. For the bigger picture, start with our complete guide to building an Apple Vision Pro app.

The stack at a glance

FrameworkRoleUse it for
SwiftUIInterface and scenesWindows, volumes, immersive spaces, controls, standard gestures
RealityKit3D rendering and simulationEntities, materials, physics, spatial audio, animation
Reality Composer ProScene authoring, included with XcodeAssembling scenes, Shader Graph materials, logic without code
ARKitUnderstanding surroundingsPlanes, images, objects, rooms, hand tracking
Compositor Services + MetalCustom renderingYour own engine in full immersion

SwiftUI: scenes, windows and volumes

On visionOS, SwiftUI does more than lay out buttons. It declares the scenes your app can open: a WindowGroup for a standard window, the same group with a volumetric style for a volume, and an ImmersiveSpace for content that surrounds the person.

@main
struct ExplorerApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }

        WindowGroup(id: "globe") {
            GlobeView()
        }
        .windowStyle(.volumetric)

        ImmersiveSpace(id: "journey") {
            JourneyView()
        }
    }
}

SwiftUI also provides the standard interactions — look and tap, pinch, drag, zoom and rotate — and system hover effects that highlight a control when someone looks at it. Apple recommends relying on them for most input; ARKit is there for custom gestures beyond them.

RealityKit: the 3D engine of visionOS

RealityKit renders 3D content, simulates physics and plays spatial audio. It is built on an entity‑component‑system architecture: an entity is anything in the scene, components carry its data — a model, a collision shape, a material — and systems update entities every frame. You place RealityKit content inside SwiftUI with a RealityView:

RealityView { content in
    if let globe = try? await Entity(named: "Globe", in: realityKitContentBundle) {
        content.add(globe)
    }
}

visionOS 27 adds physical space lighting, a projective textures API, cloth simulation, custom reverb meshes and Gaussian splatting, which renders real‑world scans loaded from USD or PLY files.

Reality Composer Pro: where scenes come together

Reality Composer Pro ships with Xcode. Designers and developers use it to compose scenes, build materials visually with Shader Graph, attach audio and preview the result before it reaches the app. Version 3, presented at WWDC26, adds an assistant that generates 3D content, Animation Graph, Script Graph for logic without code, behaviour trees and navigation meshes for characters, and subsurface scattering in Shader Graph. Apple even publishes a sample game built in Reality Composer Pro 3 without writing code.

ARKit: understanding the room

In an immersive experience, ARKit integrates your content with the person’s surroundings: it can detect planes such as floors, tables and walls, track known images and objects, recognise a room, follow the position of Apple Vision Pro and track hands for custom gestures. Access to this data depends on the person’s permission. Privacy is built in: visionOS doesn’t tell apps where people are looking before they tap, and access to the main camera is reserved for enterprise apps through dedicated entitlements.

visionOS 27 improves object tracking — higher frame rates, an extended training option in Create ML and a metric‑space pose API, available on visionOS and iOS through a new ARKit API — and lets developers build custom spatial accessories with LEDs, an IMU and a Bluetooth chip, tracked by RealityKit or ARKit.

Beyond the core four

  • Compositor Services and Metal — for teams with their own renderer, in full immersion.
  • AVKit and Immersive Media Support — video from 2D to immersive; visionOS 27 adds wide‑aspect‑ratio portals.
  • SharePlay — shared experiences where participants appear as spatial Personas.
  • TabletopKit — synchronised group games around a virtual table.
  • Game Controller — controllers and, from visionOS 27, custom spatial accessories.

How to choose (Beforz take)

This section is our recommendation, not Apple documentation. Start in SwiftUI with a window: people understand it instantly, and it keeps your app usable in the Shared Space next to everything else. Bring in RealityKit, in a volume or an immersive space, when 3D serves the story — a city to explore, a table to sit at, a home to visit. Reach for ARKit when content must respond to the actual room, and for an engine when your assets and team already live there. Whatever you pick, test on Apple Vision Pro early. See how we apply this in Immersive Street View, or read our spatial UX principles.

Frequently asked questions

What is the difference between SwiftUI and RealityKit on visionOS?

SwiftUI builds the interface and declares the scenes — windows, volumes and immersive spaces. RealityKit renders and simulates the 3D content you place inside them, usually through a RealityView.

Do I need ARKit for every visionOS app?

No. ARKit is only needed when content must understand the person’s surroundings or hands, for example to place objects on a table or recognise a room. Many apps use only SwiftUI and RealityKit.

What is Reality Composer Pro?

A tool included with Xcode to assemble 3D scenes, materials, audio and logic for RealityKit. Version 3 adds an assistant that generates 3D content and Script Graph for logic without code.

Can I use Metal directly on Apple Vision Pro?

Yes, through Compositor Services, which lets your own renderer draw a fully immersive scene.

Sources

  1. Apple Developer Documentation — visionOS
  2. Apple Developer — Build next-generation experiences with visionOS 27 (WWDC26, session 287)
  3. Apple Human Interface Guidelines — Eyes