Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Created August 28, 2023 19:27
Show Gist options
  • Save zafarivaev/5c1b3ed04ea6ddaeabe2e27e1c61c432 to your computer and use it in GitHub Desktop.
Save zafarivaev/5c1b3ed04ea6ddaeabe2e27e1c61c432 to your computer and use it in GitHub Desktop.
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
let sessionRole = connectingSceneSession.role
let sceneConfig = UISceneConfiguration(name: nil, sessionRole: sessionRole)
sceneConfig.delegateClass = SceneDelegate.self
return sceneConfig
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment