Skip to content

Instantly share code, notes, and snippets.

@softauthor
Created April 3, 2020 04:16
Show Gist options
  • Save softauthor/eb8869bf78ef746ff6afeb13a6ce1fc4 to your computer and use it in GitHub Desktop.
Save softauthor/eb8869bf78ef746ff6afeb13a6ce1fc4 to your computer and use it in GitHub Desktop.
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: LandmarkList())
self.window = window
window.makeKeyAndVisible()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment