Skip to content

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

27 mayo, 2021

Manzana has surprised the entire audience of WWDC 2014 with the announcement of a new programming language for iOS and OS X. Is about Swift which in Craig Federighi’s words is “fast, modern and safely designed” “It’s like Objective-C, but without C”. Swift has been completely natively designed to work with all the features that developers used from Cocoa and Cocoa Touch since Objective-C. And of course, full support from XCode 6 beta(Available now).


Swift Features

Although it is still too early, is called to replace Objective-C. Swift can be used for both basic applications, such as social media apps, as well as the most advanced 3D games using Apple’s new graphics optimization known as Metal. One of the advantages is that it is interoperable with Objective-C, so developers can exchange some of the code according to their preference.

The graphics in the presentation have not been very fortunate: presenting the speed of Swift ordered complex collections compared to other well-known languages ​​such as Objective-C or Python. Maybe they weren’t good examples.

Comparative Swift

Apple has put Swift documentation fully online, in iBook format and on the developer site. Objective-C has always been a language with a complex learning curve, perhaps not the most difficult, but what Swift aims to do is encourage more developers to try Apple’s platform.

Swift Playground

One of the things that we liked the most about the demo, they know how to sell it well, is the Swift’s playground to “play” and, of course, optimize our code as we learn. At the moment of writing a line of code, the result will appear immediately. In the timeline that it has, we can see the variables in a graph, including the times that code is executed.

Apple has wanted to insist that from now on we can begin to develop new functionalities and improve existing ones. Swift can easily coexist with old Objective-C files in the same project to be able to migrate little by little. And when iOS 8 and OS X Yosemite are released in the fall, we’ll be able to upload apps using Swift to the App Store and Mac App Store.

Documentation | Swift Download iBook | The Swift Programming Language In Engadget | New iOS 8 and OSX ‘Yosemite’, all you need to know