Cherry-pick various improvements

This commit is contained in:
Ilya Laktyushin
2023-01-08 01:37:02 +04:00
parent bd974e8521
commit 415182b4d2
52 changed files with 1287 additions and 253 deletions

View File

@@ -58,11 +58,15 @@ public final class SharedDisplayLinkDriver {
self.update()
})
switch UIApplication.shared.applicationState {
case .active:
if Bundle.main.bundlePath.hasSuffix(".appex") {
self.isInForeground = true
default:
self.isInForeground = false
} else {
switch UIApplication.shared.applicationState {
case .active:
self.isInForeground = true
default:
self.isInForeground = false
}
}
self.update()