Instance Property


A Boolean value that indicates whether the pasteboard is persistent.


iOS, Mac Catalyst
var isPersistent: Bool { get }
iOS, Mac Catalyst
func setPersistent(_ persistent: Bool)


When a pasteboard is persistent, it continues to exist past app terminations and across system reboots. App pasteboards that are not persistent only last until the owning (creating) app quits. The systemwide general pasteboard is persistent. Named, app-specific pasteboards are not persistent.

See Also

Getting and Setting Pasteboard Attributes

var name: UIPasteboard.Name

The name of the pasteboard.

var changeCount: Int

The number of times the pasteboard’s contents have changed.