app-reviews/App/Sources/AppDelegate.swift

37 lines
812 B
Swift
Raw Normal View History

2020-07-21 12:29:54 +02:00
//
// AppDelegate.swift
// ReviewsApp
2020-07-21 12:29:54 +02:00
//
// Created by Dmitrii Ivanov on 21/07/2020.
// Copyright © 2020 ING. All rights reserved.
//
import ReviewsFeed
2020-07-21 12:29:54 +02:00
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder {
2020-07-21 12:29:54 +02:00
// MARK: Properties
2020-07-21 12:29:54 +02:00
var window: UIWindow?
}
2020-07-21 12:29:54 +02:00
// MARK: - UIApplicationDelegate
extension AppDelegate: UIApplicationDelegate {
// MARK: Functions
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
2020-07-21 12:29:54 +02:00
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = UINavigationController(rootViewController: FeedListViewController())
2020-07-21 12:29:54 +02:00
window?.makeKeyAndVisible()
2020-07-21 12:29:54 +02:00
return true
}
2020-07-21 12:29:54 +02:00
}