From 35a8f90a1cb26b9a079e9fa7a90d67845c8206ad Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 6 Jul 2023 18:44:18 -0500 Subject: [PATCH] Converts Delta Sync action sheets into alerts Implicitly fixes crashing on iPad. --- Delta/Settings/Syncing/SyncingServicesViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Delta/Settings/Syncing/SyncingServicesViewController.swift b/Delta/Settings/Syncing/SyncingServicesViewController.swift index 6dd1dc4..e843620 100644 --- a/Delta/Settings/Syncing/SyncingServicesViewController.swift +++ b/Delta/Settings/Syncing/SyncingServicesViewController.swift @@ -170,7 +170,7 @@ extension SyncingServicesViewController if SyncManager.shared.coordinator?.account != nil { - let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to change sync services?", comment: ""), message: NSLocalizedString("Switching back later may result in conflicts that must be resolved manually.", comment: ""), preferredStyle: .actionSheet) + let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to change sync services?", comment: ""), message: NSLocalizedString("Switching back later may result in conflicts that must be resolved manually.", comment: ""), preferredStyle: .alert) alertController.addAction(.cancel) alertController.addAction(UIAlertAction(title: NSLocalizedString("Change Sync Service", comment: ""), style: .destructive, handler: { (action) in self.changeService(to: syncingService) @@ -188,7 +188,7 @@ extension SyncingServicesViewController case .authenticate: if SyncManager.shared.coordinator?.account != nil { - let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to sign out?", comment: ""), message: NSLocalizedString("Signing in again later may result in conflicts that must be resolved manually.", comment: ""), preferredStyle: .actionSheet) + let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to sign out?", comment: ""), message: NSLocalizedString("Signing in again later may result in conflicts that must be resolved manually.", comment: ""), preferredStyle: .alert) alertController.addAction(.cancel) alertController.addAction(UIAlertAction(title: NSLocalizedString("Sign Out", comment: ""), style: .destructive) { (action) in SyncManager.shared.deauthenticate { (result) in