title: How to remove border of the navigationBar in swift?
body: <p>i've been trying to remove the navigationBars border without luck. I've researched and people seem to tell to set shadowImage and BackgroundImage to nil, but this does not work in my case.</p>
  
  <p>My code</p>
  
  <pre><code>    self.navigationController?.navigationBar.barTintColor = UIColor(rgba: "#4a5866")
      self.navigationController?.navigationBar.setBackgroundImage(UIImage(named: ""), forBarMetrics: UIBarMetrics.Default)
      self.navigationController?.navigationBar.shadowImage = UIImage(named: "")
  </code></pre>
  
  <p>illustration:</p>
  
  <p><img src="https://i.stack.imgur.com/6QqBy.png" alt="enter image description here"></p>