Skip to content

Commit

Permalink
Eliminated an iOS12 deprecation warning related to obtaining the UIDo…
Browse files Browse the repository at this point in the history
…cumentBrowserTransitionController.
  • Loading branch information
neoneye committed Feb 5, 2020
1 parent 342e1d1 commit 00da08f
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -48,7 +48,11 @@ extension BrowserViewController {
// `UIDocumentBrowserViewController` is registered as the `transitioningDelegate` of the `CanvasViewController`. Next, obtain the
// transitionController, and store it for later (see `animationController(forPresented:presenting:source:)` and
// `animationController(forDismissed:)`).
transitionController = transitionController(forDocumentURL: document.fileURL)
if #available(iOS 12.0, *) {
transitionController = transitionController(forDocumentAt: document.fileURL)
} else {
transitionController = transitionController(forDocumentURL: document.fileURL)
}
transitionController?.targetView = canvasViewController.hcSafeAreaView

nc.transitioningDelegate = self
Expand Down

0 comments on commit 00da08f

Please sign in to comment.