forked from mamaral/Neon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppDelegate.swift
35 lines (28 loc) · 1.5 KB
/
AppDelegate.swift
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
//
// AppDelegate.swift
// Neon
//
// Created by Mike on 9/16/15.
// Copyright © 2015 Mike Amaral. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func applicationDidFinishLaunching(_ application: UIApplication) {
self.window = UIWindow.init(frame: UIScreen.main.bounds)
self.window?.backgroundColor = UIColor.white
// The facebook example from the README.... Don't ask why the file name is FacebookProfileExampleViewController
// but the class referenced here is TwitterProfileExampleViewController... I didn't realize you can't yet refactor
// swift code, and somehow this still works...
UINavigationBar.appearance().barTintColor = UIColor(red: 80/255.0, green: 108/255.0, blue: 163/255.0, alpha: 1.0)
UINavigationBar.appearance().isTranslucent = false
// self.window?.rootViewController = UINavigationController(rootViewController: TwitterProfileExampleViewController())
// Used for tinkering and testing new methods - uncomment this out if you want to experiment!
// self.window?.rootViewController = TestViewController()
// This is crazy-complex demo I have on the README. Uncomment this out to experience with that as well,
// although I really built it for iPads.
self.window?.rootViewController = ViewController()
self.window?.makeKeyAndVisible()
}
}