---
title: "init(nsuuid:)"
framework: corebluetooth
role: symbol
role_heading: Initializer
path: "corebluetooth/cbuuid/init(nsuuid:)-2amob"
---

# init(nsuuid:)

Creates a Core Bluetooth UUID object from a Foundation UUID object.

## Declaration

```swift
init(nsuuid theUUID: UUID)
```

## Parameters

- `theUUID`: A UUID represented by an doc://com.apple.documentation/documentation/Foundation/NSUUID object.

## Return Value

Return Value A new CBUUID object for the specified UUID.

## See Also

### Creating New CBUUID Objects

- [init(string:)](corebluetooth/cbuuid/init(string:).md)
- [init(data:)](corebluetooth/cbuuid/init(data:).md)
- [init(cfuuid:)](corebluetooth/cbuuid/init(cfuuid:)-3h0ry.md)
