2023-04-08 18:37:13 +00:00
|
|
|
//
|
|
|
|
// AppDelegate.swift
|
|
|
|
// Locations
|
|
|
|
//
|
|
|
|
// Created by Javier Cicchelli on 08/04/2023.
|
|
|
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2023-04-11 22:14:40 +00:00
|
|
|
import Core
|
2023-04-08 18:37:13 +00:00
|
|
|
import UIKit
|
|
|
|
|
|
|
|
@main
|
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
2023-04-11 22:14:40 +00:00
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
|
|
|
lazy var coordinator: LocationsListCoordinator = .init(router: router)
|
|
|
|
lazy var router: WindowRouter = .init(window: window)
|
|
|
|
lazy var window: UIWindow? = .init(frame: UIScreen.main.bounds)
|
|
|
|
|
|
|
|
// MARK: UIApplicationDelegate
|
2023-04-08 18:37:13 +00:00
|
|
|
|
2023-04-09 18:47:10 +00:00
|
|
|
func application(
|
|
|
|
_ application: UIApplication,
|
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
|
|
) -> Bool {
|
2023-04-11 22:14:40 +00:00
|
|
|
coordinator.present(animated: false, onDismiss: nil)
|
2023-04-08 18:37:13 +00:00
|
|
|
|
2023-04-11 22:14:40 +00:00
|
|
|
return true
|
2023-04-08 18:37:13 +00:00
|
|
|
}
|
2023-04-11 22:14:40 +00:00
|
|
|
|
|
|
|
func applicationDidEnterBackground(_ application: UIApplication) {
|
|
|
|
// Save changes in the application's managed object context when the application transitions to the background.
|
2023-04-08 18:37:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|