---
title: "init(frame:)"
framework: roomplan
role: symbol
role_heading: Initializer
path: "roomplan/roomcaptureview/init(frame:)"
---

# init(frame:)

Creates a view that sizes to the specified frame.

## Declaration

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

## Parameters

- `frame`: A structure that positions and shapes the view.

## Overview

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

- [init(frame:arSession:)](roomplan/roomcaptureview/init(frame:arsession:).md)
- [init(coder:)](roomplan/roomcaptureview/init(coder:).md)
