From 2795de3452cab6b22c5e0bd3b812d350e666ea99 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 5 Dec 2019 18:48:19 -0700 Subject: [PATCH] Change check to see if any scenes are in the foreground rather than if any scenes are in the background. --- iOS/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index b160c1ed1..0f0daece9 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -56,7 +56,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD var isAnySceneInForeground: Bool { for scene in UIApplication.shared.connectedScenes { - if scene.activationState != .background { + if scene.activationState == .foregroundInactive || scene.activationState == .foregroundActive { return true } }