Error in Ch.7 EnvironmentObject section

Does anyone else get an error when adding this line to the done buttons ‘action closure’?

history.addDoneExercise(Exercise.exercises[index].exerciseName)

Am I putting it in the right spot?

Screen Shot 2021-10-03 at 10.46.04 PM

hi Josie! did you copy-paste the line from the pdf/epub? I’m just looking at the “Invalid character” error — copying from pdf can pick up invisible characters.

1 Like

So there was an extra space at the end of the line where the invalid character error was, so I was able to make that one go away but the other error still remains. But I think its because I was still using my HIIT file from ch.6 instead of starting ch.7 with the new file LOL Thanks for the help though!!

1 Like