<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDVirtualDevice/deviceReference",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID16HIDVirtualDeviceC15deviceReferenceAA15HIDDeviceClientC0dF0Vvp"
  },
  "title" : "deviceReference"
}
-->

# deviceReference

The reference to the virtual HID device.

```
nonisolated final let deviceReference: HIDDeviceClient.DeviceReference
```

## Discussion

Use to create a [`HIDDeviceClient`](/documentation/CoreHID/HIDDeviceClient), if creating a device and monitoring it within the same app is desired.
For more details, see [`HIDDeviceClient.DeviceReference`](/documentation/CoreHID/HIDDeviceClient/DeviceReference-swift.struct).

---

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)