Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
68,466
39,302



Alongside iOS 10, tvOS 10, and watchOS 3, Apple today officially released Swift Playgrounds, a new app aimed at teaching both children and adults how to code through simple interactive coding exercises. It's meant to make learning to code "easy and fun" for everyone.

First announced in June at WWDC, Swift Playgrounds is meant for beginners who have no experience with coding, and it will be deployed in numerous schools around the world as standard curriculum.
Swift-Playgrounds-800x558.jpg
"Everyone should have the opportunity to learn coding, and we are excited to bring Swift Playgrounds to the next generation of programmers looking for a fun and easy way to explore key coding concepts using real code," said Craig Federighi, Apple's senior vice president of Software Engineering. "More than 100 schools around the world have already committed to adding Swift Playgrounds to their fall curriculum, and we can't wait to see what students create with it."
Swift Playgrounds is organized into a series of lessons that introduce new concepts and guide users through challenges and puzzles. It's centered on three characters that need to be guided through a graphical world using coding concepts like issuing commands, creating functions, performing loops, and using conditional code and variables. Apple plans to release new lessons on a regular basis.

The app also includes built-in templates that can be modified to create customized programs that can be shared with friends and family, and Swift Playgrounds code can be exported directly to Xcode to be turned into a full iOS or Mac app.

Swift Playgrounds is compatible with all iPad Air and iPad Pro models, along with the iPad mini 2 and later. iOS 10 is required to download the app, which is available for free from the App Store.

Article Link: Apple Releases Swift Playgrounds Coding App for iPad
 
I made it through quite a few levels of this and liked it a lot. I meant to get back to it but kept getting distracted. Looks like I have another shot at doing it again.
 
  • Like
Reactions: nagromme
I didn't noticed that it was removed when I updated to iOS 10 GM. Probably the reason why my storage gained 1GB of free space.
 
I had it with the PB but never got around to trying it. Will need to do so. Now that I am in management, its been a while since I have done hands on coding. Would be nice to go back to coding even if just for pleasure.
 
In the UK playgrounds are being closed on a regular basis which has contributed to the increase of iPad/iPhone dependency and lack of exercise and general activity in children here. So Apple creating new playgrounds can only help get our youngsters using their lower limbs as well as .

Oh no. What am I saying? It's not playgrounds in the traditional sense... it's a software thing. Wait til my missus finds out I've been wasting my time in front of a screen again. She's gonna kill me!
 
  • Like
Reactions: groovyf
I had it with the PB but never got around to trying it. Will need to do so. Now that I am in management, its been a while since I have done hands on coding. Would be nice to go back to coding even if just for pleasure.

It's very useful to create and test new Classes and Algorithms.

BTW: Has anyone figured out how to invoke arc4Random or similar function in Swift Playgrounds?
 
Oh, seriously? The same Swift Playgrounds as on the iPad?
It doesn't include the lessons, so you have to start from scratch, but on the Mac, you get the benefit of live compiling (no need to press "Run My Code" unless you specifically turn automatic running off).
 
  • Like
Reactions: Siannath
It doesn't include the lessons, so you have to start from scratch, but on the Mac, you get the benefit of live compiling (no need to press "Run My Code" unless you specifically turn automatic running off).
There's an eBook made by Apple that teaches Swift with Playgrounds (may be for the Mac, but it also applies to iOS). It's in the iBooks Store for free.
 
  • Like
Reactions: anomie
There's an eBook made by Apple that teaches Swift with Playgrounds (may be for the Mac, but it also applies to iOS). It's in the iBooks Store for free.

iTunes U has good courses from Stanford available for free that cover Xcode and iOS 9, but the basic parts of Swift haven't changed since then so it's still a relevant course. I learned a lot from the "build your own calculator" app. Was amazing to me how quickly I went from installing xcode (and being utterly lost) to writing and installing my own app on my phone. Was about 30-45 minutes. (First app didn't *do* anything except had calculator buttons and a readout display for the buttons pushed. Took a lot longer to get to finished product.) The iBook is great, but when I'm totally new video is more helpful for me.

I'm hoping Swift Playgrounds gets expanded so that it will actually let you build and install apps on the same device it's running on. That would be ground breaking, never seen before functionality in a major mobile os.

In playgrounds, I understand why Apple made the app so flashy with the waterfalls and very animated guy, but I really think it does a disservice to complete newcomers who may not realize that the effort to replicate such from scratch will probably never in their lifetime be within reach. Then again, as we move to higher level languages, "from scratch" will continue to be "soften". Like moving from assembler.
 
iTunes U has good courses from Stanford available for free that cover Xcode and iOS 9, but the basic parts of Swift haven't changed since then so it's still a relevant course. I learned a lot from the "build your own calculator" app. Was amazing to me how quickly I went from installing xcode (and being utterly lost) to writing and installing my own app on my phone. Was about 30-45 minutes. (First app didn't *do* anything except had calculator buttons and a readout display for the buttons pushed. Took a lot longer to get to finished product.) The iBook is great, but when I'm totally new video is more helpful for me.

I'm hoping Swift Playgrounds gets expanded so that it will actually let you build and install apps on the same device it's running on. That would be ground breaking, never seen before functionality in a major mobile os.

In playgrounds, I understand why Apple made the app so flashy with the waterfalls and very animated guy, but I really think it does a disservice to complete newcomers who may not realize that the effort to replicate such from scratch will probably never in their lifetime be within reach. Then again, as we move to higher level languages, "from scratch" will continue to be "soften". Like moving from assembler.

Stanford's iTunes-U course is too slow and doesn't cover much.
Check U-Demy iOS 10 course by Rob Percival.
 
  • Like
Reactions: anomie
Stanford's iTunes-U course is too slow and doesn't cover much.
Check U-Demy iOS 10 course by Rob Percival.

True -- I couldn't stick with it past the calculator demo.

The convenient part is that it's within the iTunes U app, so it automatically saves progress and allows for downloads and therefore offline viewing. Course materials are also integrated... so a lot of very handy features that a website can't quite replicate.
 
The U-Demy course will teach you a lot more in less time.
You should be able to get it for $10 if you wait for the right time.

U-Demy has an app that lets you download the videos for offline viewing.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.