Contents

init(frame:cameraMode:automaticallyConfigureSession:)

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

Declaration

@MainActor @preconcurrency init(frame frameRect: CGRect, cameraMode: ARView.CameraMode, automaticallyConfigureSession: Bool)

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.

  • automaticallyConfigureSession:

    An indication of whether to use an AR session with configuration that’s updated automatically based on camera mode and scene anchors. Set this value to false if you want to run the session manually with your own configuration.

See Also

Creating a view