1

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

Fabio Cenni
  • 841
  • 3
  • 16
  • 30

1 Answers1

2

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()
Community
  • 1
  • 1
Christian Abella
  • 5,747
  • 2
  • 30
  • 42
  • Ok, i also tried this in the controller self.navigationController?.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: .Default) self.navigationController?.navigationBar.shadowImage = UIImage() but your solution is much better – Fabio Cenni Jul 24 '16 at 23:10