Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aataraxiaa/8d630e6621746af01bf46390a1dd3589 to your computer and use it in GitHub Desktop.
Save aataraxiaa/8d630e6621746af01bf46390a1dd3589 to your computer and use it in GitHub Desktop.
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
switch segue.destination {
case let viewController1 as ViewController1:
self.viewController1 = viewController1
case let viewController2 as ViewController2:
self.viewController2 = viewController2
case let viewController3 as ViewController3:
self.viewController3 = viewController3
default:
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment