diff --git a/Source/TriangleDrawMain/Browser/BrowserViewController+PresentDocument.swift b/Source/TriangleDrawMain/Browser/BrowserViewController+PresentDocument.swift index ee3e53a..ded16d4 100644 --- a/Source/TriangleDrawMain/Browser/BrowserViewController+PresentDocument.swift +++ b/Source/TriangleDrawMain/Browser/BrowserViewController+PresentDocument.swift @@ -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