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

# init(frame:)

Creates an AR view with the specified dimensions.

iOS, iPadOS, Mac Catalyst, tvOS:

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

macOS:

```
@MainActor @preconcurrency override required dynamic init(frame frameRect: NSRect)
```

## Parameters

`frameRect`

The frame rectangle for the view, measured in points.

---

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)