---
title: uniqueID
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/uniqueid
---

# uniqueID

An identifier that uniquely identifies the device.

## Declaration

```swift
var uniqueID: String { get }
```

## Discussion

Discussion Capture devices have a unique identifier that persists on one system across device connections and disconnections, application restarts, and reboots of the system itself. You can store the value returned by this property to recall or track the status of a specific device in the future.

## See Also

### Identifying a device

- [modelID](avfoundation/avcapturedevice/modelid.md)
- [localizedName](avfoundation/avcapturedevice/localizedname.md)
- [manufacturer](avfoundation/avcapturedevice/manufacturer.md)
- [deviceType](avfoundation/avcapturedevice/devicetype-swift.property.md)
- [AVCaptureDevice.DeviceType](avfoundation/avcapturedevice/devicetype-swift.struct.md)
- [position](avfoundation/avcapturedevice/position-swift.property.md)
- [AVCaptureDevice.Position](avfoundation/avcapturedevice/position-swift.enum.md)
