Last active
May 16, 2018 10:59
-
-
Save cristhianleonli/671c3aca9e828855bc1e758b3c4b7c1c to your computer and use it in GitHub Desktop.
Starts the application without storyboard, using navBar and tabBar
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
// in AppDelegate.swift | |
private func setupApplicationController() { | |
window = UIWindow() | |
window?.makeKeyAndVisible() | |
let vc = UINavigationController(rootViewController: MainController()) | |
window?.rootViewController = vc | |
} | |
private func setupApplicationAppearance() { | |
// navBar colors | |
UINavigationBar.appearance().barTintColor = .red | |
UINavigationBar.appearance().tintColor = .white | |
// tabBar colors | |
UITabBar.appearance().barTintColor = .red | |
UITabBar.appearance().tintColor = .white | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment