Apple announces Swift, a new programming language for iOS and OS X

Apple announces Swift, a new programming language for iOS and OS X

Apple today announced a new programming language called Swift at WWDC, which will replace Objective C as the language developers use for building iOS and OS X apps.

Craig Federighi announced the new language on stage saying, “We’ve used Objective-C for 20 years, and we love it. But we wondered what we could do without the baggage of C.”

Federighi confirmed that Swift code and C can live in the same app together, too, so developers can upgrade their code as they go, rather than replacing it in one go.

Screen Shot 2014-06-03 at 6.46.22 am

There are a number of changes from Objective C, some of which are detailed in the slides below, but Apple demoed just how much less code developers will need to write to get Swift applications up and running.

The company says that Swift apps are significantly faster than Objective-C apps, outperforming them by over 93x.

Apple said that Swift applications can be submitted to the App Store from day one. When Apple announced Swift at WWDC, it got the largest cheer out of the developer audience than any other single feature.

Screen Shot 2014-06-03 at 6.47.25 am

Screen Shot 2014-06-03 at 6.46.56 am

Apple has published an eBook on Swift, which can be downloaded for free, here.

Read Next: Everything Apple Announced at WWDC

Read next: Apple announces iOS 8 beta is available today to developers, public release this fall, and no iPhone 4 support