Skip to content

Instantly share code, notes, and snippets.

@ctrevarthen
Last active November 25, 2015 05:21
Show Gist options
  • Save ctrevarthen/2a694d65ed26c5e3185c to your computer and use it in GitHub Desktop.
Save ctrevarthen/2a694d65ed26c5e3185c to your computer and use it in GitHub Desktop.
ShopQuick - Navigation Bar Color
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let backgroundColor = UIColor.init(red: 61/255, green: 30/255, blue: 94/255, alpha: 1)
// background color of the nav bar
UINavigationBar.appearance().barTintColor = backgroundColor
// prevent the color from being altered by content showing through below
UINavigationBar.appearance().translucent = false
// text color of the navigation buttons
UINavigationBar.appearance().tintColor = UIColor.whiteColor()
// text color of the screen title
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment