I need to remove the UINavigationBar
shadow image.
so I'm using the code below:
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
self.navigationController?.navigationBar.shadowImage = UIImage()
It is working perfectly, but the area behind the status bar became transparent, like the image below:
and I don't need this. It should be white. What should I do? Any help will be appreciated.
Thanks in Advance.