<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARSession/viewLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARSession(py)viewLayer"
  },
  "title" : "viewLayer"
}
-->

# viewLayer

The layer that displays the `ARFrame`, required before `viewRotationAngle` becomes available.

```
weak var viewLayer: CALayer? { get set }
```

## Discussion

Assign the layer that presents the camera image. Renderers such as `ARSCNView`, `ARSKView`, `ARView`, and
`RealityView` set this for you.

---

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)