Type Method


Returns an app pasteboard identified by a unique system-generated name.


class func withUniqueName() -> UIPasteboard

Return Value

An app pasteboard object with a unique name.


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

class var general: UIPasteboard

Returns the systemwide general pasteboard, which is used for general copy-paste operations

init?(name: UIPasteboard.Name, create: Bool)

Returns a pasteboard identified by name, optionally creating it if it doesn’t exist.

class func remove(withName: UIPasteboard.Name)

Invalidates the designated app pasteboard.