Apple Launches Swift Playgrounds
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


Programmers Against Slaughterbots
20/11/2017

Autonomous weapons might sound like a good idea at first, why send soldiers to die, but the potential for misuse is obvious. You might not have thought of such as the slaughterbot - you need to see th [ ... ]



TensorFlow Lite For Mobiles
20/11/2017

Google has announced a developer preview of TensorFlow Lite, a version of TensorFlow for mobile and embedded devices.


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Tuesday, 21 June 2016 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.