Contents

init(forOpeningContentTypes:asCopy:)

Creates and returns a document picker that can open or copy the types of documents you specify.

Declaration

init(forOpeningContentTypes contentTypes: [UTType], asCopy: Bool)

Parameters

  • contentTypes:

    An array of uniform type identifiers for the document picker to display. For more information, see Uniformtypeidentifiers.

  • asCopy:

    A Boolean value that indicates whether the document picker copies the selected document.

See Also

Creating a document picker