Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
final class AppDelegate: UIResponder, UIApplicationDelegate {
private var sceneManager: SceneManager? = nil
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
guard let window = window else { fatalError() }
sceneManager = SceneManager(window: window)
return true
override var next: UIResponder? {
return sceneManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment