AppDelegate.swift 1.2 KB

1234567891011121314151617181920212223242526272829
  1. import UIKit
  2. @main
  3. class AppDelegate: UIResponder, UIApplicationDelegate {
  4. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  5. // Override point for customization after application launch.
  6. return true
  7. }
  8. // MARK: UISceneSession Lifecycle
  9. func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
  10. // Called when a new scene session is being created.
  11. // Use this method to select a configuration to create the new scene with.
  12. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
  13. }
  14. func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
  15. // Called when the user discards a scene session.
  16. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
  17. // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
  18. }
  19. }