ronanrodrigo/my-customers

View on GitHub
MyCustomers/ApplicationBase/AppDelegate.swift

Summary

Maintainability
A
0 mins
Test Coverage
import UIKit
import MyCustomersCore

let customerRepositoryStore = CustomerRepositoryStore()
var customersAppRouter: CustomersRouterApp?

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.makeKeyAndVisible()

        customersAppRouter = CustomersRouterApp(window: window)
        if let customersAppRouter = customersAppRouter {
            customersAppRouter.list()
        }

        return true
    }

}