Skip to content

Commit

Permalink
Simplify AppDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Dec 13, 2015
1 parent 6ecb39a commit b442ead
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions AppNet/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,13 @@ import DATAStack

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?
lazy var dataStack: DATAStack = DATAStack()

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
application.setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true)

let appearance = UINavigationBar.appearance()
appearance.barTintColor = UIColor(red:0.83, green:0.43, blue:0.36, alpha:1)
appearance.titleTextAttributes = [NSFontAttributeName : UIFont(name: "AvenirNext-DemiBold", size: 20)!,
NSForegroundColorAttributeName : UIColor.whiteColor()]

window = UIWindow(frame: UIScreen.mainScreen().bounds)
window?.rootViewController = UINavigationController(rootViewController: ViewController(dataStack: dataStack))
window?.makeKeyAndVisible()

return true
}

Expand Down

0 comments on commit b442ead

Please sign in to comment.