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

(View all)
Avatar
54 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)
Avatar
54 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)
Avatar
54 months ago
early easy prediction:more adults than children will use this to learn swift.
Score: 13 Votes (Like | Disagree)
Avatar
54 months ago
Sucks to wait til the Fall to download this. I'm actually excited for this.
Score: 12 Votes (Like | Disagree)
Avatar
54 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)
Avatar
54 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

Apple Takes Legal Action Against Small Company With Pear Logo

Saturday August 8, 2020 11:09 am PDT by
Apple is taking legal action against the developers of the app "Prepear" due to its logo, according to iPhone in Canada. Prepear is an app that helps users discover recipes, plan meals, make lists, and arrange grocery deliveries. The app is a spinoff of "Super Healthy Kids," and the founders claim that they are facing litigation from Apple. Apple reportedly takes issue with Prepear's logo, ...

Apple Seeds iOS 14 and iPadOS 14 Public Beta 4 to Testers

Thursday August 6, 2020 10:05 am PDT by
Apple today seeded new public betas of upcoming iOS 14 and iPadOS 14 updates to its public beta testing group. Today's software releases, which Apple labels as fourth betas to keep them in line with developer betas, are actually the third betas that Apple has provided and they come two weeks after the prior beta releases. Public beta testers who have signed up for Apple's beta testing...

Supposed iPhone 12 Display Unit Leaks

Thursday August 6, 2020 8:13 am PDT by
An image supposedly of an iPhone 12 display unit has been shared online by leaker "Twitter user Mr. White". Compared to images of an iPhone 11 Pro display piece, this new unit has a reoriented display connector, reaching up from the bottom of the display, rather than from the left-hand side on iPhone 11 Pro. This may be due to the logic board moving to the other side of the device. A...

8 Third-Party Home Screen Widgets That You Can Try Out Now on iOS 14

Wednesday August 5, 2020 12:56 pm PDT by
One of the biggest new features of iOS 14 is Home Screen widgets, which provide information from apps at a glance. The widgets can be pinned to the Home Screen in various spots and sizes, allowing for many different layouts. When the iOS 14 beta was first released in June, widgets were limited to Apple's own apps like Calendar and Weather, but several third-party developers have begun to test ...

New 27-Inch iMac's Storage Affixed to Logic Board, 4TB and 8TB Configurations Have Expansion Connector

Friday August 7, 2020 7:46 am PDT by
Following a report from German blog iFun.de that claimed the new 27-inch iMac's flash storage is soldered to the logic board, MacRumors has obtained additional information in an internal document for Apple technicians. In the document, Apple says that the flash storage is indeed affixed to the logic board and cannot be removed. However, for the 4TB and 8TB configurations, Apple says that a...

2020 iMac Teardown Reveals Internal Changes and Similarities

Saturday August 8, 2020 12:44 pm PDT by
A teardown video, shared by OWC, reveals the internal changes in the new 2020 27-inch iMac. The 2020 27-inch iMac was announced earlier this week with 10th-generation Intel Core processors, AMD Radeon Pro 5000 series graphics, up to 128GB of RAM, up to 8TB of storage, a 1080p front-facing FaceTime camera, a True Tone display with a nano-texture glass option, higher fidelity speakers, and...

Kuo: iPhone 12 Camera Lens Supplier Experiencing Quality Issues, But May Not Affect Launch Schedule

Thursday August 6, 2020 9:30 pm PDT by
One of Apple's camera lens suppliers for the upcoming non-Pro iPhone 12 models is having quality issues, according to a new research note from analyst Ming-Chi Kuo seen by MacRumors. The issues are, however, unlikely to have an impact on Apple's shipping schedule, presuming that Apple's other main supplier can make up the difference. Kuo says that Genius Electronic Optical has discovered...

Google's $349 Pixel 4a vs. Apple's $399 iPhone SE

Wednesday August 5, 2020 1:45 pm PDT by
Google this week launched its newest smartphone, the $349 Pixel 4a, a low-cost device that's designed to compete with other affordable devices like Apple's iPhone SE. We picked up one of the new Pixel 4a smartphones and thought we'd check it out to see how it measures up to the iPhone SE, given that the two devices have such similar price points. Subscribe to the MacRumors YouTube channel ...

Sony WH-1000XM4 Noise-Canceling Headphones Now Available for $350

Friday August 7, 2020 2:01 am PDT by
Sony's flagship WH-1000MX3 noise-canceling headphones have been among the best on the market for some time, and this week Sony released its fourth-generation WH-1000XM4 headphones boasting some notable improvements on the previous model. The XM4s feature the same basic design as the XM3s, but are one gram lighter at 254 grams due to slightly larger ear pads and some subtle tweaks to the...

Apple Announces New 27-Inch iMac With 10th-Gen Processors, Up to 128GB RAM, 1080p Webcam, True Tone, and More

Tuesday August 4, 2020 8:07 am PDT by
Apple today announced a new 27-inch iMac with faster 10th-generation Intel Core processor options, next-generation AMD graphics, up to 128GB of RAM, a higher-resolution 1080p front-facing FaceTime camera, a True Tone display with a nano-texture glass option, a T2 chip, higher fidelity speakers, studio-quality microphones, and more. A breakdown of the new 27-inch iMac's features and specs:10th...