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.