Apple unveils Swift, a brand new Xcode programming language for developersCalling it "fast, modern, safe and interactive," Apple on Monday unveiled Swift, a brand new Xcode programming language that it says is superior to Objective-C.
In a demonstration, Apple showed off the "Swift Playground," where developers write code and how results are displayed as soon as code is written. Apple says Swift was designed from the ground up for Cocoa and Cocoa Touch.
Swift can be used for basic apps, like social networking, or advanced 3D games using the new "Metal" graphics optimization. And because it operates alongside Objective-C, developers will be able to seamlessly interchange languages.
Included in Swift are Generics, which allow developers to get more done with very little code written. In one example, an entire list of images was loaded with one simple line of code.
Swift Playgrounds also allow developers to see the entire history of a value over time as an application runs. Swift also includes full control of time, so a developer can fast forward or backward to see how their app might react in certain situations.
When it ships, Swift will have complete Xcode support, and a language guide is already available to developers on the iBookstore. Developers will also be able to submit apps written in Swift to the App Store when iOS 8 launches later this year.
On Topic: developer
- Apple's Swift Playgrounds sandbox for programming education now available
- Taptic API for iPhone, Apple Watch will grant devs access to previously Apple-only feature
- Apple to open iOS App Development Center in Italy this October
- Occupy the App Store? Top 1% of monetized apps dominate 94% of US App Store revenue
- Apple debuts redesigned developer resources mini-site focusing on App Store