---
title: "box(forUID:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwareplugin/box(foruid:)"
---

# box(forUID:)

## Declaration

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

## Parameters

- `UID`: The String UID of the box object to obtain.

## Return Value

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