title: How to push and present to UIViewController programmatically without segue in iOS Swift 3
body: <p>I am using this code for push <strong><em>SHOW</em></strong> and <strong><em>MODALLY</em></strong> programmatically in <strong>iOS</strong> <strong>Objective C</strong>.<br>
  And now want to know about Swift 3.  </p>
  
  <pre><code>NewsDetailsViewController *vc =  instantiateViewControllerWithIdentifier:@"NewsDetailsVCID"];
  vc.newsObj = newsObj;
  //--this(SHOW)
  [self.navigationController pushViewController:vc animated:YES];  
  //-- or this(MODAL)
  [self presentViewController:vc animated:YES completion:nil];  
  </code></pre>