private let appWindow: UIWindow = UIApplication.shared.delegate! .window!! If the window is not set at appdelegate but at sceneDelegate, it will crash