Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
- // BONUS: You'll eventually update this code with the two commented-out lines, below
- // guard let currentViewController = self.viewControllers?[0] as? DetailVC else {return}
- // locationsArray = currentViewController.locationsArray
- if segue.identifier == "ToListVC" {
- let destination = segue.destination as! ListVC
- destination.locationsArray = locationsArray
- destination.currentPage = currentPage
- }
- }
Add Comment
Please, Sign In to add comment