Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IlijaMihajlovic/3fb4418ed6988a989543b1534eaea1a5 to your computer and use it in GitHub Desktop.
Save IlijaMihajlovic/3fb4418ed6988a989543b1534eaea1a5 to your computer and use it in GitHub Desktop.
Set ViewController in SceneDelegate Programmatically
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(windowScene: windowScene)
let navController = UINavigationController(rootViewController: FirstScreen())
window?.rootViewController = navController
window?.makeKeyAndVisible()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment