This is simpler than you think: you do not need to pass parameters, because you can directly access the class variables of the next controller.
That is, you can do something like this:
workoutView.myVar = myVal
And, when this view loads, myVar will have the value myVal . (Remember to declare it in the WorkoutViewController , though).
source share