Contents

loadTransferable(type:)

Attempts to load an instance of the type you specify from the item provider.

Declaration

func loadTransferable<T>(type: T.Type) async throws -> sending T? where T : Transferable

Parameters

  • type:

    A conforming type to load from an item provider.

Return Value

A Progress object that reports the loading progress; otherwise, nil if the system doesn’t find a supported content type.

See Also

Loading the provider’s contents