<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureExternalDisplayConfigurator/previewLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureExternalDisplayConfigurator(py)previewLayer"
  },
  "title" : "previewLayer"
}
-->

# previewLayer

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

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

## Discussion

The value of this property is the `CALayer` instance that you provided when instantiating the configurator. You may specify either an [`AVCaptureVideoPreviewLayer`](/documentation/AVFoundation/AVCaptureVideoPreviewLayer) or another `CALayer` instance that displays a camera’s video preview. [`AVCaptureExternalDisplayConfigurator`](/documentation/AVFoundation/AVCaptureExternalDisplayConfigurator)holds a weak reference to the layer. If the layer is released, this property returns `nil`.

---

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)