If you navigate programmatically to your second VC you can set Values like so (3rd line)
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "newViewController") as! NewViewController
newViewController.stringVariable = stringVariable
self.present(newViewController, animated: true, completion: nil)