Fabio Cenni Fabio Cenni - 4 months ago 9
Swift Question

Make navigationBar border invisible

As the tile says I simply need to find a way to make invisible the lower border of the navigationBar like the photo below:

enter image description here

could anyone help me?!

Answer

This is the code from that link, just add this in your AppDelegate.swift to make it global.

UINavigationBar.appearance().setBackgroundImage(
    UIImage(),
    forBarPosition: .Any,
    barMetrics: .Default)

UINavigationBar.appearance().shadowImage = UIImage()
Comments