Skip to content

Instantly share code, notes, and snippets.

@dilipiOSDeveloper
Created June 28, 2020 08:31
Show Gist options
  • Save dilipiOSDeveloper/5e70b6dc6ca8cb49f2f781ac22aa3a0b to your computer and use it in GitHub Desktop.
Save dilipiOSDeveloper/5e70b6dc6ca8cb49f2f781ac22aa3a0b to your computer and use it in GitHub Desktop.
Setting Swift Navigation Bar Color with removing bottom seperator
self.navigationController?.navigationBar.barTintColor = UIColor(red: 0.0275, green: 0.4784, blue: 0.5922, alpha: 1.0)
self.navigationController?.navigationBar.setBackgroundImage(nil, for: .default)
self.navigationController?.navigationBar.setValue(true, forKey: "hidesShadow")
self.navigationController?.navigationBar.isTranslucent = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment