If you’re like me and are already completely lost in chapter 1 at:
The Sources section of the playground contains Files.swift , which holds functions for saving and reading the sample data. Expand the Sources section, if it’s not already expanded, and open Files.swift .
and can’t find the Files.swift, in Xcode, click on View → Navigators → Show Navigator (or CMD-0 that’s zero).
Congrats on the new book. Here is a minor detail that might help others. I didn’t see the play button, but it was my own fault. The text clearly says to " Save Files.swift and return to the playground page." I didn’t return to the playground page, so I didn’t see the play button. User error.
I could not get pbpaste to work. It is possible that the single line in SampleData.json is too big at over 130000 characters. On my iMac, “getconf ARG_MAX” returns 1048576. What worked for me in Terminal was:
After your response, I tracked this down and embarrassingly it is dumb user. I had done the Command-A to select the whole, original JSON file, but neglected the Command-C to put it in the clipboard. pbpaste does work for me if used correctly. Thanks for looking and sorry for wasting your time.