Last active
May 30, 2018 04:31
-
-
Save laevandus/cf29adf60169491892035c4c22dc6241 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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