Swift (programming language)
Appearance
![]() | This article documents a current event. Information may change rapidly as the event progresses, and initial news reports may be unreliable. The latest updates to this article may not reflect the most current information. (June 2014) |
File:Apple Swift Logo.png | |
Developer | Apple |
---|---|
First appeared | 2014 |
Website | http://developer.apple.com/swift |
Influenced by | |
Objective-C |
Swift is an object-oriented programming language for iOS and OS X development, introduced by Apple at its WWDC 2014.[1] It is intended to coexist with Objective-C, the current programming language for Apple operating systems.[1] Swift is designed to be more resilient against erroneous code. It is built with the LLVM compiler.
On June 2, 2014, the WWDC conference app became the first publicly released Swift app.
Example code
let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25] for (name, age) in people { println("\(name) is \(age) years old.") }