git.iko.soy/dashared/hookah-tau
on develop help sign in
dashared/hookah-tau/Hookah Tau/AppDelegate.swift
55 lines 2.5 kB history raw
1//
2// AppDelegate.swift
3// Hookah Tau
4//
5// Created by Daria Rednikina on 27/08/2019.
6// Copyright © 2019 Daria Rednikina. All rights reserved.
7//
9import UIKit
11@UIApplicationMain
12class AppDelegate: UIResponder, UIApplicationDelegate {
14 var window: UIWindow?
15 var applicationCoordinator: ApplicationCoordinator?
18 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
20 window = UIWindow(frame: UIScreen.main.bounds)
21 window?.makeKeyAndVisible()
23 let navController = UINavigationController()
25 applicationCoordinator = ApplicationCoordinator(navigationController: navController)
26 applicationCoordinator?.start()
28 return true
29 }
31 func applicationWillResignActive(_ application: UIApplication) {
32 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
33 // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
34 }
36 func applicationDidEnterBackground(_ application: UIApplication) {
37 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
38 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
39 }
41 func applicationWillEnterForeground(_ application: UIApplication) {
42 // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
43 }
45 func applicationDidBecomeActive(_ application: UIApplication) {
46 // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
47 }
49 func applicationWillTerminate(_ application: UIApplication) {
50 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
51 }