Contents

realityViewCameraControls(_:)

Adds gestures that control the position and direction of a virtual camera.

Declaration

@MainActor @preconcurrency func realityViewCameraControls(_ controls: CameraControls) -> some View

Discussion

You can use a drag gesture from a mouse, trackpad, or screen touches with iOS and iPadOS devices to .tilt, .pan, .orbit, or .dolly a virtual camera.

See Also

Configuring camera controls