Fabio Cenni
Fabio Cenni

Reputation: 851

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?!

Upvotes: 1

Views: 83

Answers (1)

Christian Abella
Christian Abella

Reputation: 5797

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()

Upvotes: 2

Related Questions