Create window in AppDelegate didFinishLaunching.

This commit is contained in:
Brent Simmons
2025-02-01 16:09:53 -08:00
parent 16e6b4b377
commit f91afc209b

View File

@@ -20,6 +20,7 @@ var appDelegate: AppDelegate!
@UIApplicationMain
final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider {
private var window: UIWindow?
private var bgTaskDispatchQueue = DispatchQueue.init(label: "BGTaskScheduler")
private var waitBackgroundUpdateTask = UIBackgroundTaskIdentifier.invalid
@@ -117,6 +118,8 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC
syncTimer!.update()
#endif
window = UIWindow(frame: UIScreen.main.bounds)
return true
}