Initializer

init(frame:cameraMode:)

Creates an AR view with the specified dimensions and camera mode.

Declaration

convenience init(frame frameRect: CGRect, cameraMode: ARView.CameraMode)

Parameters

frameRect

The frame rectangle for the view, measured in points.

cameraMode

An indication of whether to use the device’s camera or a virtual one.

See Also

Creating a View

init(frame: CGRect)

Creates an AR view with the specified dimensions.

init(frame: CGRect, cameraMode: ARView.CameraMode, automaticallyConfigureSession: Bool)

Creates an AR view with the specified dimensions, camera mode, and session configuration state.

init?(coder: NSCoder)

Creates an AR view initialized from data in a given decoder.

typealias ARViewBase

The platform-specific base class for the view into which RealityKit renders content.