<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ARView/init(frame:cameraMode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit6ARViewC5frame10cameraModeACSo6CGRectV_AC06CameraF0Otcfc"
  },
  "title" : "init(frame:cameraMode:)"
}
-->

# init(frame:cameraMode:)

Creates an AR view with the specified dimensions and camera mode.

```
@MainActor @preconcurrency convenience init(frame frameRect: CGRect, cameraMode: ARView.CameraMode)
```

## 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.

---

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)