Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Created August 28, 2023 19:31
Show Gist options
  • Save zafarivaev/b91d3eb271389127004c5392c1326709 to your computer and use it in GitHub Desktop.
Save zafarivaev/b91d3eb271389127004c5392c1326709 to your computer and use it in GitHub Desktop.
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
let window = UIWindow(windowScene: windowScene)
self.window = window
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment