title: Setting status bar and navigation bar to be the same color
body: <p><a href="https://i.stack.imgur.com/JNCzG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JNCzG.png" alt="enter image description here"></a></p>
  
  <p>Hi, I wanted to set the status bar to have the exact same color as the <code>UINavigationBar</code>. I am using the exact same color in the code shown below but as you can see from the image, they are not of the same blue color.  Is there any method to get them to be the same. I tried to google but could not find any solution.</p>
  
  <pre><code>UIApplication.shared.statusBarView?.backgroundColor = UIColor(red: 13/225, green: 71/255, blue:161/255, alpha: 1.0)
  
  UINavigationBar.appearance().barTintColor = UIColor(red: 13/225, green: 71/255, blue:161/255, alpha: 1.0)
  </code></pre>