init(forOpening:)
Initializes and returns a document browser view controller that can open the specified file types.
Declaration
init(forOpening contentTypes: [UTType]?)Parameters
- contentTypes:
An array of uniform type identifiers. If
nil, the browser uses the document types that the Cfbundledocumenttypes key specifies in the app’sInfo.plistfile.For detailed instructions about setting the
CFBundleDocumentTypeskey, see Setting Up A Document Browser App.For more information about type identifiers, see Uniformtypeidentifiers.