Apple Launches Swift Playgrounds
Written by Alex Denham   
Friday, 17 June 2016

Apple has introduced a new app for iPad designed to make it fun and easy for anyone to learn to code.

Swift Playgrounds has an interactive interface that can be used to code in Swift, Apple's language for developing apps for iOS, macOS, watchOS, tvOS and Linux. 

The new app comes with programming lessons developed by Apple. As users follow the lessons, they have fun onscreen characters that they can guide through challenges and use to solve puzzles. The more the user codes, the more challenges and games become available.

 

swift3

 

There are also built-in templates that users can use to create their own programs that can then be shared. The templates let the user add graphics and touch interactions.

 

As users become more experienced, they can make use of Swift with the iOS frameworks. Apps can be created from scratch using empty playground documents, or by using  one of the built-in templates with scaffolding for graphics and user interface to build apps that respond to touch and accelerometer or that control Bluetooth devices. Because Swift Playgrounds apps are based on Swift code, projects can be exported directly to Xcode to create programs for iOS and macOS.

According to Craig Federighi, Apple’s senior vice president of Software Engineering:

"Swift Playgrounds is the only app of its kind that is both easy enough for students and beginners, yet powerful enough to write real code. It’s an innovative way to bring real coding concepts to life and empower the next generation with the skills they need to express their creativity.”

The lessons in the app cover coding concepts including creating functions, performing loops and using conditional code and variables. Apple will also release new standalone challenges on a regular basis to keep users interested. Developers can add their own challenges for the app using Xcode.

The programming interface of Swift Playgrounds makes use of the Multi-Touch iPad interface, and there's a coding keyboard that lets you type additional characters common to Swift programming by swiping across the key. A shortcut bar presents the most likely next commands or values based on context. You can also drag from a library of common coding snippets to create new code with little or no typing.

A preview release of Swift Playgrounds is now available to Apple Developer Program members as part of the iOS 10 developer preview and will be available with the iOS 10 public beta in July. The final version of Swift Playgrounds will be free in the App Store this Fall.

 swiftlogo

More Information

Swift Playgrounds

Related Articles

Apple Open Sources Swift

Apple's New Language - Swift       

Swift 2 To Be Open Source       

Top Languages 2015 - Stasis But For Go And Swift       

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter,subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


Google Updates Responsible AI Toolkit
01/11/2024

Google has announced updates to the Responsible Generative AI Toolkit to enable it to be used with any LLM model. The Responsible GenAI Toolkit provides resources to design, build, and evaluate open A [ ... ]



Data Wrangler Gets Copilot Integration
11/11/2024

Microsoft has announced that Copilot is being integrated into Data Wrangler. The move will give data scientists the ability to use natural language to clean and transform data, and to get help with fi [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 21 June 2016 )