From da42bd9ecf1809c943701669e36498ab8613ec6e Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 8 Aug 2024 19:04:50 +0400 Subject: [PATCH] refactor --- apps/ios/Shared/SimpleXApp.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Shared/SimpleXApp.swift b/apps/ios/Shared/SimpleXApp.swift index d2d1a634c9..ae539d7298 100644 --- a/apps/ios/Shared/SimpleXApp.swift +++ b/apps/ios/Shared/SimpleXApp.swift @@ -58,7 +58,7 @@ struct SimpleXApp: App { } .onChange(of: scenePhase) { phase in logger.debug("scenePhase was \(String(describing: scenePhase)), now \(String(describing: phase))") - AppSheetState.shared.scenePhaseActive = if case .active = phase { true } else { false } + AppSheetState.shared.scenePhaseActive = phase == .active switch (phase) { case .background: // --- authentication