Skip to content

Instantly share code, notes, and snippets.

@cristhianleonli
Last active May 16, 2018 10:59
Show Gist options
  • Save cristhianleonli/671c3aca9e828855bc1e758b3c4b7c1c to your computer and use it in GitHub Desktop.
Save cristhianleonli/671c3aca9e828855bc1e758b3c4b7c1c to your computer and use it in GitHub Desktop.
Starts the application without storyboard, using navBar and tabBar
// 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