i\'ve been trying to remove the navigationBars border without luck. I\'ve researched and people seem to tell to set shadowImage and BackgroundImage to nil, but this does not
If you want to remove only the bottom line and keep the solid color of navigationBar, add these lines of code in viewDidLoad: Swift 3, 4:
navigationController?.navigationBar.shadowImage = UIImage() navigationController?.navigationBar.isTranslucent = false
Peace!