I am trying to make my UINavigationBar in UINavigationController transparent. I created a subclass of UINavigationController and liked
UINavigationBar
UINavigationController
Xcode 8.x : Swift 3: Extension for the same Write once use throughout
extension UINavigationBar { func transparentNavigationBar() { self.setBackgroundImage(UIImage(), for: .default) self.shadowImage = UIImage() self.isTranslucent = true } }