title: move back to View Controller from Navigation Controller?
body: <p>I am a beginner in Swift Development and I am stuck at one point. I have a ViewController1(Entry Point), Navigation Controller and ViewController2. ViewController2 contains <strong><a href="https://github.com/xmartlabs/XLPagerTabStrip" rel="nofollow noreferrer">XLPagerTabStrip</a></strong> and is embedded in Navigation Controller.I am able to move from ViewController1 to Navigation controller using below code.</p>
  
  <pre><code>let navigationController = mainStoryBoard.instantiateViewController(withIdentifier: "NavigationController") as! UINavigationController
  
  let viewController = mainStoryBoard.instantiateViewController(withIdentifier: "ParentViewController") as! ParentViewController
  navigationController.pushViewController(viewController, animated: true)
  
  self.present(navigationController, animated: true, completion: nil)
  </code></pre>
  
  <p>Now the problem is I am unable to move back to ViewController1 from Navigation Controller.</p>
  
  <p>Able to Move From <strong>ViewController1 -> NavigationController -> ViewController2</strong></p>
  
  <p>but unable to move back i.e. <strong>ViewController1 &lt;- NavigationController &lt;- ViewController2</strong></p>
  
  <p>Thanks in Advance.</p>