How to navigate from one controller to another view controller programmatically in swift? :     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        if segue.identifier == "GMNewPostControllerSegueIdentifier"
        {
            let svc = segue.destination as? UINavigationController
            
            let vc: GMNewPostController = svc?.topViewController as! GMNewPostController
            
 
        }
    }
    
    @IBAction func newPostButtonAction(_ sender: UIButton) {
        
         performSegue(withIdentifier: "GMNewPostController", sender: self)
       
    }
}
There is my Code, I don't like to drag and drop from my storyboard because i have table view in vc2. 