Type Method

object(withItemProviderData:typeIdentifier:)

Creates a new instance of a class using the given data and UTI string.

Required.

Declaration

static func object(withItemProviderData data: Data, typeIdentifier: String) throws -> Self

Parameters

data

The data used to create the object.

typeIdentifier

The uniform type identifier (UTI) representing the data type of data.

Return Value

An object created from the given data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software