Use this tag only for questions directly related to changes in version 2.x of Apple's Swift programming language. Use the tag [swift] for more general language questions, or the tags [ios], [cocoa], [apple-watch] etc for questions about developing on Apple platforms.
Swift 2 is the newest major version of the Swift programming language by Apple.
This version of Swift adds syntax improvements such as the new keywords guard
and defer
, and also adds error handling with do-catch
statements and the try
keyword. and Mutability warnings
in Swift 2, you'll get warnings in your code whenever you declare variables that never change as constants (using let) rather than variables (using var).
It was made open source on December 3rd of 2015. The source code can be found on github.
Swift was introduced at Apple's 2014 Worldwide Developers Conference (WWDC). It underwent an upgrade to version 1.2 during 2014 and a more major upgrade to Swift 2 at WWDC 2015. Initially a proprietary language, version 2.2 was made open source and made available under the Apache License 2.0 on December 3, 2015, for Apple's platforms and Linux IBM announced its Swift Sandbox website, which allows developers to write Swift code in one pane and display output in another.
The stable Swift version is Swift 2.2.1 which was released on May 3 2016.
As a result of cooperation with Apple, there is an IBM Swift Sandbox for latest Swift syntax.