Fix several deprecation warnings.

This commit is contained in:
Brent Simmons
2024-11-04 21:49:58 -08:00
parent 5109a69682
commit 4a162e1bcf
5 changed files with 45 additions and 32 deletions

View File

@@ -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])
documentPicker.modalPresentationStyle = .formSheet
self.present(documentPicker, animated: true)
}
func openURL(_ urlString: String) {