---
title: uniqueID
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsuniqueidspecifier/uniqueid
---

# uniqueID

Returns the ID encapsulated by the receiver.

## Declaration

```swift
var uniqueID: Any { get set }
```

## Return Value

Return Value The ID encapsulated by the receiver.
