Guest User

Untitled

a guest
Aug 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  2. // BONUS: You'll eventually update this code with the two commented-out lines, below
  3. // guard let currentViewController = self.viewControllers?[0] as? DetailVC else {return}
  4. // locationsArray = currentViewController.locationsArray
  5. if segue.identifier == "ToListVC" {
  6. let destination = segue.destination as! ListVC
  7. destination.locationsArray = locationsArray
  8. destination.currentPage = currentPage
  9. }
  10. }
Add Comment
Please, Sign In to add comment