AppDelegate.swift 1.3 KB

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