iOS 10: Taking a Closer Look at Apple's 'Swift Playgrounds' for iPad

At WWDC last week, Apple revealed its all-new Swift Playgrounds iPad app, which aims to help younger users learn how to code in Apple's programming language by making the experience more interactive and fun.

For those unfamiliar with Swift, the open-source language was announced by Apple at WWDC 2014, and developed over four years to be "concise and expressive" in order to make coding for iOS, Mac, Apple TV, and Apple Watch more approachable.

Swift Playgrounds
Using Swift Playgrounds, Apple invites users to "solve puzzles to master the basics using Swift" and "take on a series of challenges" to step up to more advanced creations. Swift Playgrounds requires no coding knowledge from new learners, but it also "provides a unique way for seasoned developers to quickly bring ideas to life," claims the company.

Users start out by learning the underlying concepts of coding, like commands, functions, loops, parameters, conditional code, variables, operators, types, initialization, and bug fixing. The learning takes place as users create code on the left side of the screen, while they observe the results on the right side in real time.

Learning to code with Swift Playgrounds is incredibly engaging. The app comes with a complete set of Apple-designed lessons. Play your way through the basics in "Fundamentals of Swift" using real code to guide a character through a 3D world. Then move on to more advanced concepts.

The Swift Playground interface supports the iPad's Multi-Touch capabilities, and lets students tap, drag, or type text and numbers, and then interact with their creations.

For example, tapping a number to edit it brings up a pop-up keypad, while statement boundaries can be conveniently dragged around existing code. Commonly used pieces of code can also be dragged from a Snippets Library to minimize typing.

In addition, a specially designed QuickType keyboard for coding lets users quickly access commonly used characters by holding each key, and intelligently suggests commands in the Shortcut Bar as users type.

Swift Playgrounds
Swift Playgrounds also comes with templates that are pre-loaded with advanced code to help users integrate iPad technologies like accelerometer, gyroscope, and Multi-Touch into their programs.

Students can add their own graphics and audio to these templates, and their completed code is readily shareable over Mail, Messages, and AirDrop, and they can also post video to Youtube of their programs in action.

Once users have mastered the basics with the app's built-in library of lessons, they can advance to new challenges that appear in a regularly updated App Store-like area of Swift Playgrounds. Finally, any code created in the app can also be exported to Xcode and vice versa when students are ready to take the next step.

Swift Playgrounds will be available in the iOS 10 public beta this July. The final version of the app is expected to launch for free on the App Store sometime in the fall. You can watch Apple's WWDC demo of Swift Playgrounds in action here.

Top Rated Comments

Xeroc Avatar
63 months ago
Is it just me that thought, when this was announced, that we're now one step closer to XCode for iPad?
Score: 22 Votes (Like | Disagree)
KernelG Avatar
63 months ago
I really wish they'd release this on the Mac, that other device that Apple used to make.
Score: 19 Votes (Like | Disagree)
hogo Avatar
63 months ago
early easy prediction:more adults than children will use this to learn swift.
Score: 13 Votes (Like | Disagree)
moeafg Avatar
63 months ago
Sucks to wait til the Fall to download this. I'm actually excited for this.
Score: 12 Votes (Like | Disagree)
drumcat Avatar
63 months ago
The funny thing is this will be compelling for adults, too. Look at the iOS "Human Resource Machine". Fun game.
Score: 8 Votes (Like | Disagree)
robinp Avatar
63 months ago
I'm looking forward to learning a bit of swift with my baby daughter as soon as she is old enough. I have done a bit of scripting in Maya in the past, but would love to have a better insight into proper programming
Score: 5 Votes (Like | Disagree)

Top Stories

siir apple event april 20

Siri Reveals Apple Event Planned for Tuesday, April 20

Tuesday April 13, 2021 12:04 am PDT by
Siri has apparently prematurely revealed that Apple plans to hold an event on Tuesday, April 20, where the company is expected to reveal brand new iPad Pro models and possibly its long-awaited AirTags trackers. Subscribe to the MacRumors YouTube channel for more videos. Upon being asked "When is the next Apple Event," Siri is currently responding with, "The special event is on Tuesday, April...
apple event spring loaded

Apple's 'Spring Loaded' Event Officially Announced for Tuesday, April 20

Tuesday April 13, 2021 9:04 am PDT by
Following an overnight leak by Siri, Apple today officially announced that it will be holding a special "Spring Loaded" event on Tuesday, April 20 at 10:00 a.m. Pacific Time at the Steve Jobs Theater on the Apple Park campus in Cupertino, California. As with all of Apple's 2020 events, the April 2021 event will be a digital-only gathering with no members of the media invited to attend in...
pixel watch prosser leak

Google Pixel Watch Allegedly Leaks with Circular Design, Rumored to Launch in October

Monday April 12, 2021 2:49 am PDT by
Renders of Google's first smartwatch, codenamed "Rohan," have been shared by Jon Prosser, showing that Google plans to adopt a circular design for its flagship wearable watch. Prosser shared the renders in an episode of his YouTube show "Front Page Tech," in which he claims they were made based on marketing material he had seen from a source within Google. The renders show that the Pixel...
Google maps feaure green

Google Maps App for iOS Finally Updated After Four Months

Monday April 12, 2021 10:03 am PDT by
Following the completed rollout of App Privacy labels for its App Store apps, Google today updated the Google Maps app for the first time in four months. Apple in December began requiring all new app submissions and app updates to include App Privacy labels, detailing the data that is collected by the app so consumers know what they're sharing. Google didn't begin implementing App Privacy ...
AppleTV and HomePod Feature

Bloomberg: Apple Working on New Apple TV With Integrated HomePod Speaker and FaceTime Camera

Monday April 12, 2021 3:32 am PDT by
Apple is working on a combined Apple TV with HomePod speaker that has a camera for video calls through a connected television set, according to Bloomberg's Mark Gurman. From the report: The company is working on a product that would combine an Apple TV set-top box with a HomePod speaker and include a camera for video conferencing through a connected TV and other smart-home functions,...
samsung experience 1

Samsung's 'iTest' Lets You Try a Galaxy Device on Your iPhone

Thursday April 8, 2021 12:42 pm PDT by
Samsung has launched "iTest," an interactive website experience that's designed to allow iPhone users to test out Android on a Galaxy device, or "sample the other side," as Samsung puts it. Subscribe to the MacRumors YouTube channel for more videos. The iTest website is being advertised in New Zealand, according to a MacRumors reader who came across the feature. Visiting the iTest website on...
epic iap feature 3

Tim Cook Says App Store Would Become a 'Flea Market' if Third-Party Payment Systems Were Allowed

Monday April 12, 2021 9:41 am PDT by
In a recent interview with the Toronto Star, Apple CEO Tim Cook spoke about a wide variety of topics, ranging from App Tracking Transparency to Apple's ongoing legal battle over App Store policies with Fortnite creator Epic Games. Notably, Cook said that Epic Games' desire for Apple to let developers offer their own payment systems in apps "would make the App Store a flea market":At the...
tim cook toronto star

Tim Cook Says Apple is 'Not Against Digital Advertising' Ahead of iOS 14.5 Launch With App Tracking Transparency

Monday April 12, 2021 8:00 am PDT by
Starting with iOS 14.5, iPadOS 14.5, and tvOS 14.5, Apple will be requiring apps to receive a user's permission to track their activity for targeted advertising purposes, as part of a privacy measure known as App Tracking Transparency. Ahead of App Tracking Transparency being enforced, Apple CEO Tim Cook has participated in a privacy-focused interview with the Toronto Star, telling the...
a13 bionic mockup

Apple Made Sudden Security Changes to its Chips in Fall 2020

Monday April 12, 2021 8:15 am PDT by
Apple made unusual mid-production hardware changes to the A12, A13, and S5 processors in its devices in the fall of 2020 to update the Secure Storage Component, according to Apple Support documents. According to an Apple Support page, spotted by Twitter user Andrew Pantyukhin, Apple changed the Secure Enclave in a number of products in the fall of 2020:Note: A12, A13, S4, and S5 products...
HomePod G4 Feature

Bloomberg: Future HomePod May Feature iPad Connected Via Robotic Arm to Track Users Around The Room During FaceTime Calls

Monday April 12, 2021 3:50 am PDT by
In a report outlining a possible Apple TV with a combined HomePod and camera, Bloomberg's Mark Gurman says that Apple is exploring a future high-end HomePod speaker that could include an iPad connected via a robotic arm that tracks and follows users around a room. From the report: The Cupertino, California-based technology giant, is also mulling the launch of a high-end speaker with a touch ...