Swift Logo by Apple

Swift is open source!

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


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


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.



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.



REPL Support for Swift Packages

The swift run command has a new --repl option which launches the Swift REPL with support for importing library targets of a package....

How Mirror Works

Swift places a lot of emphasis on static typing, but it also supports rich metadata about types, which allows code to inspect and manipulate arbitrary values at runtime. This is exposed to Swift programmers through the Mirror API. One might wonder, how does something like Mirror work in a language with so much emphasis on static types? Let’s take a look!...



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.


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