From f91afc209b8a5a8e1e2039d6fb83cffddd0509a0 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 1 Feb 2025 16:09:53 -0800 Subject: [PATCH] Create window in AppDelegate didFinishLaunching. --- iOS/AppDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 2c4aaedfc..6a4a25cc2 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -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 }