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

# tap(forUID:)

## Declaration

```swift
func tap(forUID UID: String) throws -> AudioHardwareTap?
```

## Parameters

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

## Return Value

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