Skip to content

Instantly share code, notes, and snippets.

@ZkHaider
Last active June 6, 2019 02:53
Show Gist options
  • Save ZkHaider/f902d3b67292dbcd950cf584f4d6dbac to your computer and use it in GitHub Desktop.
Save ZkHaider/f902d3b67292dbcd950cf584f4d6dbac to your computer and use it in GitHub Desktop.
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 }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment