<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct/deviceID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID15HIDDeviceClientC15DeviceReferenceV8deviceIDs6UInt64Vvp"
  },
  "title" : "deviceID"
}
-->

# deviceID

The unique ID for the associated HID device.

```
let deviceID: UInt64
```

## Discussion

A [`HIDDeviceClient.DeviceReference`](/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct)with the same [`deviceID`](/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct/deviceID) is an equivalent reference to the same device, and a [`deviceID`](/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct/deviceID) for a device is equivalent across the system.

---

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)