title: How to set title of Navigation Bar in Swift?
body: <p>I'm trying to set title of <code>Navigation Bar</code> in Swift, I set <code>Tab Bar</code> and in <code>Navigation Bar</code> nothing is showing, no button, no title, nothing. I used some code but it's not working while I use <code>Tab Bar</code>, and when I deleted <code>Tab Bar</code>, code is working and everything is ok with <code>Navigation Bar</code>, title is showing and buttons are showing.</p>
  
  <p>Code that I used for title is:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      self.navigationItem.title = "My Title"
  
  }
  </code></pre>
  
  <p>And in <code>Main.storyboard</code> I connected <code>Navigation Controller</code> with <code>Tab Bar Controller</code>, as in picture.</p>
  
  <p><a href="https://i.stack.imgur.com/ymC4f.png"><img src="https://i.stack.imgur.com/ymC4f.png" alt="enter image description here"></a></p>
  
  <p>So, how to fix this ? The problem is that <code>Navigation Bar</code> is not working while using <code>Tab Bar</code>.</p>