From c22945b1e7ed8d084545493fefb46932aea3e084 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 26 Jun 2021 17:02:17 -0400 Subject: [PATCH] Use sheetPresentationController property --- Tusker/Screens/Compose/ComposeHostingController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeHostingController.swift b/Tusker/Screens/Compose/ComposeHostingController.swift index 4b675ae770..7d386897ed 100644 --- a/Tusker/Screens/Compose/ComposeHostingController.swift +++ b/Tusker/Screens/Compose/ComposeHostingController.swift @@ -249,9 +249,9 @@ extension ComposeHostingController: ComposeUIStateDelegate { if #available(iOS 15.0, *) { let picker = AssetPickerViewController() picker.assetPickerDelegate = self - picker.modalPresentationStyle = .popover + picker.modalPresentationStyle = .pageSheet picker.overrideUserInterfaceStyle = .dark - let sheet = picker.popoverPresentationController!.adaptiveSheetPresentationController + let sheet = picker.sheetPresentationController! sheet.detents = [.medium(), .large()] sheet.prefersEdgeAttachedInCompactHeight = true self.present(picker, animated: true)