<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwarePlugin/box(forUID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwarePluginC3box6forUIDAA0bC3BoxCSgSS_tKF"
  },
  "title" : "box(forUID:)"
}
-->

# box(forUID:)

```
func box(forUID UID: String) throws -> AudioHardwareBox?
```

## Parameters

`UID`

The String UID of the box object to obtain.

## Return Value

The AudioHardwareBox that corresponds with the given UID, or nil if the UID
does not correspond with any box object.

---

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)