Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aataraxiaa/252ca4b7141aec353279e08b2345c2bf to your computer and use it in GitHub Desktop.
Save aataraxiaa/252ca4b7141aec353279e08b2345c2bf to your computer and use it in GitHub Desktop.
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "Segue1" {
if let viewController1 = segue.destination as? ViewController1 {
self.viewController1 = viewController1
}
} else if segue.identifier == "Segue12" {
if let viewController2 = segue.destination as? ViewController2 {
self.viewController2 = viewController2
}
} else if segue.identifier == "Segue3" {
if let viewController3 = segue.destination as? ViewController3 {
self.viewController3 = viewController3
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment