Created
July 3, 2018 09:00
-
-
Save jazzbpn/1fb5dd6c5b12bb18ff818f3619647814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
/* Create ui-view-controller instance*/ | |
let notice = NoticeRouter.createModule() | |
/* Initiating instance of ui-navigation-controller with view-controller */ | |
let navigationController = UINavigationController() | |
navigationController.viewControllers = [notice] | |
/* Setting up the root view-controller as ui-navigation-controller */ | |
window = UIWindow(frame: UIScreen.main.bounds) | |
window?.rootViewController = navigationController | |
window?.makeKeyAndVisible() | |
return true | |
} | |
func applicationWillResignActive(_ application: UIApplication) { | |
} | |
func applicationDidEnterBackground(_ application: UIApplication) { | |
} | |
func applicationWillEnterForeground(_ application: UIApplication) { | |
} | |
func applicationDidBecomeActive(_ application: UIApplication) { | |
} | |
func applicationWillTerminate(_ application: UIApplication) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment