transitionController(forDocumentAt:)
Creates a transition controller that provides the standard system-loading and segue animations for the document browser.
Declaration
func transitionController(forDocumentAt documentURL: URL) -> UIDocumentBrowserTransitionControllerParameters
- documentURL:
The URL of a document. Only use URLs provided by the document browser (for example, URLs passed to the delegate’s Documentbrowser(_:didrequestdocumentcreationwithhandler:)method’s completion block).
Return Value
Returns a newly instantiated transition controller. Its loadingProgress and targetView properties are both set to nil.
Discussion
For the animations to function properly, you must maintain a strong reference to the transition controller until all the animation sequences are complete.
For more about using the transition controller, see UIDocumentBrowserTransitionController.