Instance Property


A Boolean value that determines whether the document browser can create new documents.


var allowsDocumentCreation: Bool { get set }


The browser creates new documents when the user taps the Add (+) button in the navigation bar. The Add button is enabled only if both the allowsDocumentCreation property is set to true, and the browser delegate implements the documentBrowser(_:didRequestDocumentCreationWithHandler:) method.

By default, this property is set to true.

See Also

Configuring a Document Browser

var allowedContentTypes: [String]

The document types that the browser can open.

var allowsPickingMultipleItems: Bool

A Boolean value that determines whether the user can select and open more than one document at a time.

func revealDocument(at: URL, importIfNeeded: Bool, completion: ((URL?, Error?) -> Void)?)

Reveals (and optionally imports) the document at the provided URL.