AppDelegate.swift 710 B

1234567891011121314151617181920212223242526
  1. //
  2. // AppDelegate.swift
  3. // BFFramework
  4. //
  5. // Created by 287971051@qq.com on 05/28/2021.
  6. // Copyright (c) 2021 287971051@qq.com. All rights reserved.
  7. //
  8. import UIKit
  9. @main
  10. class AppDelegate: UIResponder, UIApplicationDelegate {
  11. var window: UIWindow?
  12. func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  13. window = UIWindow(frame: UIScreen.main.bounds)
  14. let rootViewController = ViewController()
  15. let navigationController = UINavigationController(rootViewController: rootViewController)
  16. window?.rootViewController = navigationController
  17. window?.makeKeyAndVisible()
  18. return true
  19. }
  20. }