Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active May 30, 2018 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/cf29adf60169491892035c4c22dc6241 to your computer and use it in GitHub Desktop.
Save laevandus/cf29adf60169491892035c4c22dc6241 to your computer and use it in GitHub Desktop.
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