Presenting Selected Documents

Display user-selected documents over your browser view controller.


When the user selects one or more documents in the browser view controller, the system calls your delegate's documentBrowser(_:didPickDocumentURLs:) method.

Display Documents with Document View Controllers

In your implementation of the documentBrowser(_:didPickDocumentURLs:) method, modally present a view controller to display the selected documents by calling the browser's present(_:animated:completion:) method.

The document view should fill the entire screen, but it can have its own split view controller, navigation controller, or tab controller, as appropriate. It remains onscreen as long as the user is interacting with the documents. To return to the browser, dismiss the document view controller.

See Also


Setting Up a Document Browser App

Add a document browser view controller to your app.

Enabling Document Sharing

Give users the ability to import and export documents from your app.