AppDelegate.swift 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // AppDelegate.swift
  2. // Tencent is pleased to support the open source community by making vap available.
  3. //
  4. // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
  5. //
  6. // Licensed under the MIT License (the "License"); you may not use this file except in
  7. // compliance with the License. You may obtain a copy of the License at
  8. //
  9. // http://opensource.org/licenses/MIT
  10. //
  11. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  12. // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  13. // either express or implied. See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. import UIKit
  16. @main
  17. class AppDelegate: UIResponder, UIApplicationDelegate {
  18. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  19. // Override point for customization after application launch.
  20. return true
  21. }
  22. // MARK: UISceneSession Lifecycle
  23. func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
  24. // Called when a new scene session is being created.
  25. // Use this method to select a configuration to create the new scene with.
  26. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
  27. }
  28. func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
  29. // Called when the user discards a scene session.
  30. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
  31. // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
  32. }
  33. }