AppDelegate.swift 1.3 KB

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