I am trying to make a segue to a table view controller when a button is tapped in my view controller programmatically. Here is my code:
@objc func editProfileButtonAction(sender: UIButton!) {
    print("ButtonTapped")
    
    func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if let identifier = segue.identifier {
        if identifier == "EditProfile" {
            var editProfileTableViewController = segue.destination as! EditProfileTableViewController
          editProfileTableViewController = self
        }
      }
    }
    
}
I really could use some help. I also need to make a segue to a collection view controller using a button in the same view controller.
 
     
    