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

# init(frame:cameraMode:automaticallyConfigureSession:)

Creates an AR view with the specified dimensions, camera mode, and
session configuration state.

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

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

`automaticallyConfigureSession`

An indication of whether to use an
AR session with configuration that’s updated automatically based on
camera mode and scene anchors. Set this value to `false` if you want
to run the session manually with your own configuration.

---

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)