AppDelegate.swift 869 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // AppDelegate.swift
  3. // Example-iOS
  4. //
  5. // Created by Spiros Gerokostas on 01/03/16.
  6. // Copyright © 2016 SnapKit Team. All rights reserved.
  7. //
  8. import UIKit
  9. @UIApplicationMain
  10. class AppDelegate: UIResponder, UIApplicationDelegate {
  11. var window: UIWindow?
  12. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  13. self.window = UIWindow(frame: UIScreen.main.bounds)
  14. let listViewController:ListViewController = ListViewController()
  15. let navigationController:UINavigationController = UINavigationController(rootViewController: listViewController);
  16. self.window!.rootViewController = navigationController;
  17. self.window!.backgroundColor = UIColor.white
  18. self.window!.makeKeyAndVisible()
  19. return true
  20. }
  21. }