From 3bd8ce573ffaa3c9502f36dceb64f731b548ab26 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 1 Feb 2025 19:55:10 -0800 Subject: [PATCH] =?UTF-8?q?Rename=20sceneCoordinator=20to=20coordinator=20?= =?UTF-8?q?(since=20we=E2=80=99re=20not=20using=20scenes=20anymore).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/AppDelegate.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index d4e813a4d..18006c5d5 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -21,7 +21,7 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC private var waitBackgroundUpdateTask = UIBackgroundTaskIdentifier.invalid private var syncBackgroundUpdateTask = UIBackgroundTaskIdentifier.invalid - private var sceneCoordinator: SceneCoordinator? + private var coordinator: SceneCoordinator? var syncTimer: ArticleStatusSyncTimer? @@ -123,9 +123,9 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC rootSplitViewController.showsSecondaryOnlyButton = true rootSplitViewController.preferredDisplayMode = .oneBesideSecondary - sceneCoordinator = SceneCoordinator(rootSplitViewController: rootSplitViewController) - rootSplitViewController.coordinator = sceneCoordinator - rootSplitViewController.delegate = sceneCoordinator + coordinator = SceneCoordinator(rootSplitViewController: rootSplitViewController) + rootSplitViewController.coordinator = coordinator + rootSplitViewController.delegate = coordinator window.rootViewController = rootSplitViewController @@ -193,7 +193,7 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC func manualRefresh(errorHandler: @escaping ErrorHandlerBlock) { assert(Thread.isMainThread) - sceneCoordinator?.cleanUp(conditional: true) + coordinator?.cleanUp(conditional: true) AccountManager.shared.refreshAll(errorHandler: errorHandler) } @@ -238,7 +238,7 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC default: handle(response) DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { - self.sceneCoordinator?.dismissIfLaunchingFromExternalAction() + self.coordinator?.dismissIfLaunchingFromExternalAction() } } } @@ -372,7 +372,7 @@ private extension AppDelegate { ArticleThemeDownloader.shared.cleanUp() CoalescingQueue.standard.performCallsImmediately() - sceneCoordinator?.suspend() + coordinator?.suspend() logger.info("Application processing suspended.") } } @@ -497,6 +497,6 @@ private extension AppDelegate { func handle(_ response: UNNotificationResponse) { AccountManager.shared.resumeAllIfSuspended() - sceneCoordinator?.handle(response) + coordinator?.handle(response) } }