---
title: device
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/device
---

# device

The device for which the coordinator configures the preview layer.

## Declaration

```swift
weak var device: AVCaptureDevice? { get }
```

## Discussion

Discussion The value of this property is the AVCaptureDevice instance you provided when instantiating the configurator. AVCaptureExternalDisplayConfigurator holds a weak reference to the device. If the device is released, this property returns nil.

## See Also

### Inspecting the configurator

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