<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/RoomCaptureView/init(frame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "c:@M@RoomPlan@objc(cs)RoomCaptureView(im)initWithFrame:"
  },
  "title" : "init(frame:)"
}
-->

# init(frame:)

Creates a view that sizes to the specified frame.

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

## Parameters

`frame`

A structure that positions and shapes the view.

## Overview

This property inherits from <doc://com.apple.documentation/documentation/UIKit/UIView>.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)