---
title: viewLayer
framework: arkit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+]
path: arkit/arsession/viewlayer
---

# viewLayer

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

## Declaration

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

## Discussion

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