(Swift) Programmatically Segue

(Swift) Programmatically Segue

Using the code from my previous post on segues, here’s a snippet:

func segueToPublisher () {
  let customSegueGoToRightScene = CustomSegueGoToRightScene(identifier: "CustomSegueGoToRightScene", source: self, destination: PublisherViewController())
  customSegueGoToRightScene.perform()
}

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *