Instance Method

addItems(_:)

Appends pasteboard items to the current contents of the pasteboard.

Declaration

func addItems(_ items: [[String : Any]])

Parameters

items

An array of dictionaries. Each dictionary represents a pasteboard item, with the key being the representation type and the value being the object associated with that type.

See Also

Getting and Setting Multiple Pasteboard Items

var items: [[String : Any]]

The pasteboard items on the pasteboard.

func data(forPasteboardType: String, inItemSet: IndexSet?) -> [Data]?

Returns the data objects in the indicated pasteboard items that have the given representation type.

func values(forPasteboardType: String, inItemSet: IndexSet?) -> [Any]?

Returns the objects in the indicated pasteboard items that have the given representation type.

func setItems([[String : Any]], options: [UIPasteboard.OptionsKey : Any])

Adds an array of items to a pasteboard, and sets privacy options for all the items on the pasteboard.