Skip to content

Instantly share code, notes, and snippets.

@chashmeetsingh
Last active June 5, 2016 06:20
Show Gist options
  • Save chashmeetsingh/2f115adc19866dcf0ae17752b2e500cc to your computer and use it in GitHub Desktop.
Save chashmeetsingh/2f115adc19866dcf0ae17752b2e500cc to your computer and use it in GitHub Desktop.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let navigationController: AppNavigationController = AppNavigationController(rootViewController: VideoViewController())
let menuViewController: AppMenuController = AppMenuController(rootViewController: navigationController)
menuViewController.edgesForExtendedLayout = .None
let tabBarController: BottomNavigationController = BottomNavigationController()
tabBarController.viewControllers = [RecipesViewController(), menuViewController, PhotoViewController()]
tabBarController.selectedIndex = 1
tabBarController.tabBar.tintColor = MaterialColor.white
tabBarController.tabBar.backgroundColor = MaterialColor.grey.darken4
let bottomNavController: AppNavigationController = AppNavigationController(rootViewController: tabBarController)
let sideNavigationController: SideNavigationController = SideNavigationController(rootViewController: bottomNavController, leftViewController: AppLeftViewController())
sideNavigationController.statusBarStyle = .LightContent
window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = sideNavigationController
window!.makeKeyAndVisible()
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment