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)