Develop in Swift - Fundamentals (e-Book)

Hello people,

I'm new in Swift and Xcode, I'm learning and until now everything is okay and fantastic, however I have an issue with the next exercise.

Lab - Enumerations.playground-App Exercise - Swimming Workouts

In the last part of the exercise is written the next:

Inside save() write a switch statement that switches on the instance's stroke property, and appends self to the proper array.

I don't understand what means "appends self to the proper array", I tried everything and can not found the solution, someone can explain in more detail what this mean?

Thank you all in advance.

Ernesto.

You probably have an array of objects (may be UIView ?)

If self is a UIView itself, then you can append:

myArray.append(self)

You should post code to make helping you easier.

Develop in Swift - Fundamentals (e-Book)
 
 
Q