Skip to content

Instantly share code, notes, and snippets.

View SwapnilDhotre's full-sized avatar

Swapnil Dhotre SwapnilDhotre

View GitHub Profile
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
window?.rootViewController = FirstViewController()
window?.makeKeyAndVisible()
}