<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareBox/uid",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B11HardwareBoxC3uidSSvp"
  },
  "title" : "uid"
}
-->

# uid

A String that contains a persistent identifier for the box object. A box’s UID is
persistent across boots. The content of the UID string is a black box and may contain
information that is unique to a particular instance of an box’s hardware or unique
to the CPU. Therefore they are not suitable for passing between CPUs or for identifying
similar models of hardware.

```
var uid: String { get throws }
```

---

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)