Skip to content

Instantly share code, notes, and snippets.

@sarunw
Created December 19, 2018 13:13
Show Gist options
  • Select an option

  • Save sarunw/4bd63ab0d985dae20fa03bc202aa7d24 to your computer and use it in GitHub Desktop.

Select an option

Save sarunw/4bd63ab0d985dae20fa03bc202aa7d24 to your computer and use it in GitHub Desktop.
class OrderSummaryViewController: UIViewController {
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "checkout" {
let vc = segue.destination as! DeliveryAddressViewController
vc.cart = cart // pass along cart information to next view controller
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment