documentBrowser(_:willPresent:)
Tells the delegate that the document browser will display an activity view.
Declaration
optional func documentBrowser(_ controller: UIDocumentBrowserViewController, willPresent activityViewController: UIActivityViewController)Parameters
- controller:
The current document browser.
- activityViewController:
The activity view controller to be displayed.
Discussion
The document browser displays an activity view when the user shares a document (for example, when the user long presses a document and then chooses Share from the Edit Menu).
Implement this method to customize the activity view before it is displayed. For example, you could exclude any system-provided activities that are inappropriate for your app (see the UIActivityViewController class’s excludedActivityTypes property).