TechnologiesAR & Spatial

_RealityKit_SwiftUI cross-import overlay

iOSmacOStvOSwatchOSvisionOS

A cross-import overlay that integrates RealityKit with SwiftUI, letting you bridge the two frameworks when both are imported. It converts SwiftUI gesture values into entity coordinate spaces through types like RealityCoordinateSpaceProjecting, and exposes RealityView configuration such as RealityViewCamera, RealityViewContentProtocol, RealityViewEntityCollection, and RealityViewEnvironment. Rendering and presentation options including RealityViewDynamicRange, RealityViewLayoutOption, RealityViewPostProcessEffect, and RealityViewRenderingEffects let you tune how RealityKit content appears within a SwiftUI view on iOS, macOS, tvOS, and visionOS.

Bridging Gestures and Content 2

Protocols that connect SwiftUI gesture values and view content to RealityKit entity coordinate spaces.

  • Pr
    RealityCoordinateSpaceProjecting
    A protocol for coordinate spaces that can project 2D points to and from 3D.
  • Pr
    RealityViewContentProtocol
    A protocol representing the content of a reality view.

RealityView Camera 2

Types that configure and supply the camera used to present RealityKit content in a SwiftUI view.

  • St
    RealityViewCamera
    A camera for reality view scenes, that can be world tracking or virtual.
  • St
    RealityViewCameraContent
    The content of a reality view that is displayed through a camera.

Content and Environment 2

Types that expose the entities and environment available within a RealityView.

  • St
    RealityViewEntityCollection
    A collection of entities in a RealityView.
  • St
    RealityViewEnvironment
    A struct that determines the background and default lighting properties for a reality view.

Rendering and Presentation Options 5

Options that tune how RealityKit content is laid out, rendered, and presented within a SwiftUI view.

  • St
    RealityViewDynamicRange
    Options that determine the state of high dynamic range rendering for virtual content.
  • St
    RealityViewLayoutOption
    Options that specify the frame sizing and content alignment option for `RealityView`.
  • St
    RealityViewPostProcessEffect
    A struct for enabling or disabling post processing effects for all content a reality view contains.
  • St
    RealityViewRenderingEffectMode
    A mode that determines whether a rendering effect is enabled or disabled.
  • St
    RealityViewRenderingEffects
    A struct for enabling and disabling rendering effects for RealityKit content.

Classes 1

  • Cl
    ObjectCaptureSession
    A session object that monitors and controls image capture for photogrammetry.

Structures 5

  • St
    EntityTargetValue
    A value containing an original gesture value along with a targeted entity.
  • St
    ObjectCapturePointCloudView
    Renders the current state of the point cloud from an object capture session.
  • St
    ObjectCaptureView
    A view that guides a user through capturing images for object capture.
  • St
    RealityView
    A view that contains RealityKit content.
  • St
    RealityViewDefaultPlaceholder
    A view that represents the default placeholder for a RealityView.

Extends 7

ViewMeshResourceEntityBindingEnvironmentValuesGestureComponentGesture
← AR & Spatial