mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change check to see if any scenes are in the foreground rather than if any scenes are in the background.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user