Same code, error and no error

I do not understand this. seemingly the same code. one compiles and one errors out.
I typed the line with the error.
I copied and pasted the line w/o an error (from my library)

M1 MacBook Air
Xcode Version 13.1 (13A1030d)

It’s not the same code. { vs ( on line 22. The { is underlined in red.

1 Like

DUH!!!
Thanks so much!