I have an app that sometimes needs its navigation bar to blend in with the content.
Does anyone know how to get rid of or to change color of this annoying little ba
Swift 4 Tested ONE LINE SOLUTION
In Viewdidload() Set Navigation controller's userdefault value true for key "hidesShadow"
Viewdidload()
override func viewDidLoad() { super.viewDidLoad() self.navigationController?.navigationBar.setValue(true, forKey: "hidesShadow") }