In Part One, we looked at a relatively painless way to talk about and experience variables.
Swift Playgrounds from The Code Hub
One of the other little tweaks we’ve just shipped is an update to our Text Adventure Playground. But let’s start with a little (re)introduction of Playgrounds, for the uninitiated.
If you didn’t already know, The Code Hub has a suite of Swift Playgrounds for use in the iPad (and now Mac!) Playgrounds app. When you download Playgrounds, which is a free download, you’ll see a bar along the bottom of the screen with the headline “More Playgrounds.”
Apple provides an excellent array of playgrounds authored to teach you how to code, to learn augmented reality development. Or some innovative uses of content and code like the Cipher playground. The app is free, as are playgrounds you can download from Apple and third parties (like The Code Hub).
But if you are on an iPad and go to https://thecodehub.ie/playgrounds/ you can click on the Subscribe button to add The Code Hub’s suite of playgrounds to the app. Alternatively, on the Mac version of Playgrounds you can scroll to the bottom of the additional playgrounds and you’ll see the option to enter a subscription URL:
www.thecodehub.ie/playgrounds/feed.json and you’ll be good to go. You’ll see a confirmation dialog like this:
And, once you hit Subscribe, you’ll see a list of our playgrounds.
Right now, the 18th of March, 2020, we have six. I’ll try and touch on each of them in the next few weeks. But for now, you can download any of them onto your device and play around with them. There is a bit of explanatory text for each of the playgrounds, so you won’t be left completely at sea.
It helps to have a bit of Swift knowledge, but that, too, I’ll be touching on in the coming weeks.