Set rootViewController iOS 13
问题 After upgrading Xcode a critical part of my application has stopped working. When my app launches I run a function to check boolean flags and set the correct rootViewController. But the code I have been using to set this has now stopped working class func setLoginAsInitialViewContoller(window:UIWindow) { print("SET LOGIN") let storyboard = UIStoryboard(name: "Login", bundle: nil) let controller = storyboard.instantiateViewController(withIdentifier: "LoginViewController") controller