Improved the overall implementation of the AppDelegate delegate in the App target.
This commit is contained in:
parent
7990076212
commit
94509e4fa3
@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// AppDelegate.swift
|
// AppDelegate.swift
|
||||||
// AppStoreReviews
|
// ReviewsApp
|
||||||
//
|
//
|
||||||
// Created by Dmitrii Ivanov on 21/07/2020.
|
// Created by Dmitrii Ivanov on 21/07/2020.
|
||||||
// Copyright © 2020 ING. All rights reserved.
|
// Copyright © 2020 ING. All rights reserved.
|
||||||
@ -10,16 +10,27 @@ import ReviewsFeed
|
|||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
class AppDelegate: UIResponder {
|
||||||
|
|
||||||
|
// MARK: Properties
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
||||||
window = UIWindow(frame: UIScreen.main.bounds)
|
|
||||||
let viewController = FeedListViewController()
|
|
||||||
window?.rootViewController = UINavigationController(rootViewController: viewController)
|
|
||||||
window?.makeKeyAndVisible()
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - UIApplicationDelegate
|
||||||
|
extension AppDelegate: UIApplicationDelegate {
|
||||||
|
|
||||||
|
// MARK: Functions
|
||||||
|
func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
|
) -> Bool {
|
||||||
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
|
|
||||||
|
window?.rootViewController = UINavigationController(rootViewController: FeedListViewController())
|
||||||
|
window?.makeKeyAndVisible()
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user