aboutsummaryrefslogtreecommitdiff
path: root/foray/AppDelegate.swift
blob: fc5d2f9ef54c0e35a1dd5f1d41c209f0636ab437 (plain) (blame)
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
//
//  AppDelegate.swift
//  foray
//
//  Created by Nicholas Tay on 14/3/2022.
//

import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        let nav = UINavigationController()
        let mainView = ForayTableViewController()
        nav.viewControllers = [mainView]
        
        let window = UIWindow(frame: UIScreen.main.bounds)
        window.rootViewController = nav
        self.window = window
        window.makeKeyAndVisible()
    
        return true
    }


}