-
-
Save chashmeetsingh/2f115adc19866dcf0ae17752b2e500cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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