---
title: withUniqueName()
framework: uikit
role: symbol
role_heading: Type Method
path: uikit/uipasteboard/withuniquename()
---

# withUniqueName()

Returns an app pasteboard that you identify by a unique system-generated name.

## Declaration

```swift
class func withUniqueName() -> UIPasteboard
```

## Return Value

Return Value An app pasteboard object with a unique name.

## Discussion

Discussion Obtain the value of the name property to discover the name of the returned pasteboard. App pasteboards returned by this method are not persistent, existing only until the app quits. Starting in iOS 10, persistent named pasteboards are deprecated. Instead use a shared container, as described in the overview for the UIPasteboard class.

## See Also

### Getting and removing pasteboards

- [general](uikit/uipasteboard/general.md)
- [init(name:create:)](uikit/uipasteboard/init(name:create:).md)
- [remove(withName:)](uikit/uipasteboard/remove(withname:).md)
