Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  2. //if destination is VC1 OR VC2...
  3.  
  4. if let destVC = segue.destination as?
  5. FavouriteDetailViewController || FavouriteExerciseDetailViewController
  6.  
  7. //... then pass the values as specified
  8.  
  9. destVC.favouriteWorkoutPassed = workoutToPass
  10. destVC.favouriteObjectPassed = favouriteObjectToPass
  11. }
Add Comment
Please, Sign In to add comment