init(forOpeningContentTypes:)
Creates and returns a document picker that can open the types of documents you specify.
Declaration
convenience init(forOpeningContentTypes contentTypes: [UTType])Parameters
- contentTypes:
An array of uniform type identifiers for the document picker to display. For more information, see Uniformtypeidentifiers.