---
title: videoPreviewLayer
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptureconnection/videopreviewlayer
---

# videoPreviewLayer

The video preview layer associated with the connection.

## Declaration

```swift
var videoPreviewLayer: AVCaptureVideoPreviewLayer? { get }
```

## Discussion

Discussion The connection sets the property in its init(inputPort:videoPreviewLayer:) initializer.

## See Also

### Inspecting a connection

- [inputPorts](avfoundation/avcaptureconnection/inputports.md)
- [output](avfoundation/avcaptureconnection/output.md)
- [audioChannels](avfoundation/avcaptureconnection/audiochannels.md)
