Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created May 26, 2021 07:23
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 iosdevie/56b638bc471fe9b574cbf4d7ebad9a88 to your computer and use it in GitHub Desktop.
Save iosdevie/56b638bc471fe9b574cbf4d7ebad9a88 to your computer and use it in GitHub Desktop.
ipados 13 multiwindow support
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)
window?.windowScene = windowScene
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment