one view controller to another View controller in swift

let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "secondVC") as! SecondViewController
self.present(newViewController, animated: true, completion: nil)
Previous
Next Post »