Created
July 8, 2020 13:56
-
-
Save akio0911/1d731a6e3e13eb8380bac8c6c8dd81d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
| var window: UIWindow? | |
| func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
| let storyboard = UIStoryboard(name: "Main", bundle: nil) | |
| if isLogin { | |
| let viewControllerB = storyboard.instantiateViewController(identifier: "ViewControllerB") | |
| window?.rootViewController = UINavigationController(rootViewController: viewControllerB) | |
| } else { | |
| window?.rootViewController = storyboard.instantiateInitialViewController() | |
| } | |
| } | |
| private let isLogin = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment