Swift Logo by Apple

Swift is open source!

Apple has open sourced Swift, a modern programming language for iOS, OS X, watchOS and Linux.

Learn

Swift 4.0 is much faster and adds new features: protocol extensions, a new error handling model, mutability warnings, synthesized headers in Xcode, markdown in comments, Objective-C generics and nullability annotations, and more.

Learn more

Code

Get the full Swift development enviroment for OS X or Linux from GitHub. Windows support will be added later. If you just want to try Swift in the online playground, all you need is the web browser.

Playground

Discuss

Do you have any questions? Ask other developers on our forum. Find the best solutions for Swift programming. Write you thoughts and source code. Become one of Swift experts and share your knowledge.

Community

Blog

Xcode 9.1 Improves Display of Fatal Errors

Swift has language constructs that allow you to specify your program’s expectations. If these expectations are not met at runtime, the program will be terminated. For example, indexing into an array implicitly expresses an expectation that the index is in bounds:...

Dictionary and Set Improvements in Swift 4.0

In the latest release of Swift, dictionaries and sets gain a number of new methods and initializers that make common tasks easier than ever. Operations like grouping, filtering, and transforming values can now be performed in a single step, letting you write more expressive and efficient code....

Video

Book

Read the official Swift Programming Language Book (Swift 4.0) by Apple, containing a complete guide and a language reference, in one of five formats.

Resources

Here are some links to tutorials, articles and other resources. If you find something interesting, please add it to our community.