title: Transition within Navigation to the Root Tab Bar Controller XCODE
body: <p>I have an issue of moving from a ViewController back to a root tab bar controller. Here's my storyboard, I have attached an image of my issue.</p>
  <p><a href="https://i.stack.imgur.com/giPe9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/giPe9.png" alt="storyboard" /></a></p>
  <p>I have tried the following:</p>
  <pre><code>let homeTBC = controllers![3] as! UITabBarController
          let homeVC = homeTBC.viewControllers?[0] as! HomeViewController
          self.present(homeVC, animated: true, completion: nil)
  </code></pre>
  <p>I'm getting this error message:</p>
  <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally a view controller &lt;ITEiOSApp.HomeViewController: 0x7fbb200bf000&gt; that has a parent view controller &lt;UITabBarController: 0x7fbb200bea00&gt;.'
  terminating with uncaught exception of type NSException
  </code></pre>
  <p>Please help really running out of options here.</p>
  <p>Thank you in advance</p>