Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //guard let _ = (scene as? UIWindowScene) else { return }
- let storyBoard = UIStoryboard(name: "Main", bundle: nil)
- let firstViewController = storyBoard.instantiateViewController(withIdentifier: "LoginViewController")
- if let windowScene = scene as? UIWindowScene {
- let window = UIWindow(windowScene: windowScene)
- let navigationController = UINavigationController(rootViewController: firstViewController)
- navigationController.navigationBar.isTranslucent = false
- navigationController.setNavigationBarHidden(true, animated: true)
- navigationController.isNavigationBarHidden = true
- window.rootViewController = navigationController
- self.window = window
- window.makeKeyAndVisible()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement