title: Navigation controller is not working properly
body: <p>I have navigation controller after showing first VC. I am using perform segue for navigate from first vc to second page with <code>performSegue(withIdentifier: "secondVC", sender: nil)</code> and my sidebar is appearing. However, when I tried to go third page from First vc it is not navigating. So, I tried to use following code        </p>
  
  <pre><code>let thirdVC = self.storyboard?.instantiateViewController(withIdentifier: "thirdVC") as! ThirdVC
  navigationController?.pushViewController(thirdVC, animated: true)
  </code></pre>
  
  <p>It is working but my navigation bar is disappearing when I used above code. How can I go from first vc to third?</p>
  
  <p><a href="https://i.stack.imgur.com/Ha1Yn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ha1Yn.png" alt="enter image description here"></a></p>