I use:
self.navigationController?.navigationBar.shadowImage = UIImage()
to remove the border of a navigationBar earlier in my app but now I'm not sure to add the border back on a later screen.
I use:
self.navigationController?.navigationBar.shadowImage = UIImage()
to remove the border of a navigationBar earlier in my app but now I'm not sure to add the border back on a later screen.
To reset the navigationBar
's shadowImage
to the default shadowImage
do the following:
self.navigationController?.navigationBar.shadowImage = UINavigationBar().shadowImage