-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAppDelegate.swift
More file actions
43 lines (36 loc) · 1.11 KB
/
AppDelegate.swift
File metadata and controls
43 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// AppDelegate.swift
// Example
//
// Created by AGString on 2019. 11. 3..
// Copyright © 2019 AGString. All rights reserved.
//
import UIKit
// MARK: - AppDelegate
/// The AppDelegate
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
/// The UIWindow
var window: UIWindow?
/// The RootViewController
var rootViewController: UIViewController {
return UIViewController()
}
/// Application did finish launching with options
///
/// - Parameters:
/// - application: The UIApplication
/// - launchOptions: The LaunchOptions
/// - Returns: The launch result
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Initialize UIWindow
self.window = .init(frame: UIScreen.main.bounds)
// Set RootViewController
self.window?.rootViewController = self.rootViewController
// Make Key and Visible
self.window?.makeKeyAndVisible()
// Return positive launch
return true
}
}