---
title: modelID
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/modelid
---

# modelID

A model identifier for the device.

## Declaration

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

## Discussion

Discussion The value of this property is an identifier unique to all devices of the same model. The value is persistent across device connections and disconnections, and across different systems. For example, the model identifier of a built-in camera on two identical iPhone models is the same even though they’re different physical devices.

## See Also

### Identifying a device

- [uniqueID](avfoundation/avcapturedevice/uniqueid.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)
