---
title: previewLayer
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/rotationcoordinator/previewlayer
---

# previewLayer

The layer that displays a camera preview the coordinator calculates a video rotation angle for.

## Declaration

```swift
weak var previewLayer: CALayer? { get }
```

## Discussion

Discussion The coordinator updates its videoRotationAngleForHorizonLevelPreview property by monitoring the layer and the physical rotation of device.

## See Also

### Inspecting a coordinator’s configuration

- [device](avfoundation/avcapturedevice/rotationcoordinator/device.md)
