Contents

init(frame:)

Creates a view that sizes to the specified frame.

Declaration

@MainActor @preconcurrency override dynamic init(frame: CGRect)

Parameters

  • frame:

    A structure that positions and shapes the view.

Overview

This property inherits from UIView.

The system invokes this initializer if you omit the arSession argument to init(frame:arSession:). RoomPlan creates its own ARSession instance, which you can access through the captureSession property’s arSession.

See Also

Creating a room-capture view