create segue and start it trough code swift code example
Example: perform segue swift
// replace "example" with your segue identifier
self.performSegue(withIdentifier: “example”, sender: self)
// replace "example" with your segue identifier
self.performSegue(withIdentifier: “example”, sender: self)