---
title: previewLayer
framework: AVFoundation
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 26.0+]
path: avfoundation/avcaptureexternaldisplayconfigurator/previewlayer
---

# previewLayer

The layer for which the configurator adjusts display properties to match the device’s state.

## Declaration

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

## Discussion

Discussion The value of this property is the CALayer instance that you provided when instantiating the configurator. You may specify either an AVCaptureVideoPreviewLayer or another CALayer instance that displays a camera’s video preview. AVCaptureExternalDisplayConfiguratorholds a weak reference to the layer. If the layer is released, this property returns nil.

## See Also

### Inspecting the configurator

- [activeExternalDisplayFrameRate](avfoundation/avcaptureexternaldisplayconfigurator/activeexternaldisplayframerate.md)
- [device](avfoundation/avcaptureexternaldisplayconfigurator/device.md)
- [isActive](avfoundation/avcaptureexternaldisplayconfigurator/isactive.md)
