title: How to move from Viewcontroller to TabBarController without segue
body: <p>I have such logic in my app:</p>
  <p><a href="https://i.stack.imgur.com/c9qOz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c9qOz.png" alt="enter image description here" /></a></p>
  <p>I would like to move from ViewController to HomeScreen after 200 response from server, and in any other cases it will be done programmatically. I know about segue which can be attached to pressing button, but when I use segue and press login btn without text in fields I also move to Home Screen that is why I think that segue can't be used in such situation (I can be wrong), so I added id for Home Screen and added such code for pressing btn:</p>
  <pre><code>let vc = UIStoryboard.init(name: &quot;Main&quot;, bundle: Bundle.main).instantiateViewController(withIdentifier: &quot;homeScr&quot;) as? UITabBarController
  self.navigationController?.pushViewController(vc!, animated: true)
  </code></pre>
  <p>and when I press this button noting happens. What I did wrong and how to solve this problem?</p>