From ca3de24738918fac7884e92eb7d7ca3e2e1b0118 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 25 Feb 2024 19:02:29 -0800 Subject: [PATCH] Fix deprecation warnings. --- iOS/AppDelegate.swift | 2 +- iOS/Settings/SettingsViewController.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 72426842a..a52ffb48c 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -192,7 +192,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { - completionHandler([.alert, .badge, .sound]) + completionHandler([.list, .banner, .badge, .sound]) } func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 8feca9c36..819348436 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -470,9 +470,9 @@ private extension SettingsViewController { self.presentError(title: "OPML Export Error", message: error.localizedDescription) } - let docPicker = UIDocumentPickerViewController(url: tempFile, in: .exportToService) - docPicker.modalPresentationStyle = .formSheet - self.present(docPicker, animated: true) + let documentPicker = UIDocumentPickerViewController(forExporting: [tempFile], asCopy: false) + documentPicker.modalPresentationStyle = .formSheet + self.present(documentPicker, animated: true) } func openURL(_ urlString: String) {