This commit is contained in:
spaced4ndy
2024-08-08 19:04:50 +04:00
parent a9cd219479
commit da42bd9ecf

View File

@@ -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