There is a thin gray border in the bottom of UINavigatioBar:

I can't remove it!
I've tried:
self.navigationController?.navigationBar.layer.borderColor =
 UIColor.orangeColor().CGColor
self.navigationController?.navigationBar.layer.borderWidth = 0
With no chance.
                        
It should work
Add this line for background color (Change rgb value of your choice)