Learn Apple's Swift programming language interactively through these playgrounds.
Swift
Latest commit 77e3f58 Jan 5, 2015 @nettlep Merge pull request #9 from mttrd/patch-1
Fix typo
Failed to load latest commit information.
10. Properties.playground Updated to support XCode 6.0 GM. Sep 16, 2014
11. Methods.playground Updated to support XCode 6.0 GM. Sep 16, 2014
12. Subscripts.playground Updated to support XCode 6.0 GM. Sep 16, 2014
13. Inheritance.playground Updated to support XCode 6.0 GM. Sep 16, 2014
14a. Initialization.playground Updated to support XCode 6.0 GM. Sep 16, 2014
14b. Initializer Chaining.playground Updated to support XCode 6.0 GM. Sep 16, 2014
15. Deinitialization.playground Updated to support XCode 6.0 GM. Sep 16, 2014
16. ARC.playground Updated to support XCode 6.0 GM. Sep 16, 2014
17. Optional Chaining.playground Updated to support XCode 6.0 GM. Sep 16, 2014
18. Type Casting.playground Updated to support XCode 6.0 GM. Sep 16, 2014
19. Nested Types.playground Updated to support XCode 6.0 GM. Sep 16, 2014
1a. The Basics.playground Updated to support XCode 6.0 GM. Sep 16, 2014
1b. Type alliases.playground Updated to support XCode 6.0 GM. Sep 16, 2014
1c. Tuples.playground Updated to support XCode 6.0 GM. Sep 16, 2014
1d. Optionals.playground Updated to support XCode 6.0 GM. Sep 16, 2014
1e. Assertions.playground Updated to support XCode 6.0 GM. Sep 16, 2014
2. Basic operations.playground Updated to support XCode 6.0 GM. Sep 16, 2014
20. Extensions.playground Updated to support XCode 6.0 GM. Sep 16, 2014
21. Protocols.playground Updated to support XCode 6.0 GM. Sep 16, 2014
22. Generics.playground Updated to support XCode 6.0 GM. Sep 16, 2014
23. Advanced Operators.playground Updated to support XCode 6.0 GM. Sep 16, 2014
3. Strings and Characters.playground Updated to support XCode 6.0 GM. Sep 16, 2014
4a. Arrays.playground Updated to support XCode 6.0 GM. Sep 16, 2014
4b. Dictionaries.playground Updated to support XCode 6.0 GM. Sep 16, 2014
5. Control Flow.playground Updated to support XCode 6.0 GM. Sep 16, 2014
6. Functions.playground Updated to support XCode 6.0 GM. Sep 16, 2014
7. Closures.playground Updated to support XCode 6.0 GM. Sep 16, 2014
8. Enumerations.playground Updated to support XCode 6.0 GM. Sep 16, 2014
9. Classes and Structures.playground Updated to support XCode 6.0 GM. Sep 16, 2014
99. Not The End.playground Updated to support XCode 6.0 GM. Sep 16, 2014
README.md Fix typo Dec 24, 2014

README.md

learn-swift

Learn Apple's Swift programming language interactively through these playgrounds.

Target Audience

Programmers familiar with C++ and/or Objective-C.

What you'll need

You will need XCode 6.0 GM (or later) or 6.1 Beta 2 (or later) and probably a Mac to run it on.

Purpose & Goal

More than a primer, these playgrounds are intended to get programmers up to speed on Swift as fast as possible so they can begin using Swift productively.

These playgrounds only cover the language. They do not dig into the Swift Standard Library or other APIs.

To increase your understanding, you are encouraged to experiment with them along the way. Play the 'what-if' game. These are live playgrounds which offer near-realtime feedback of edits.

Source of Content

I created these while working my way through the "Language Guide" section of Apple's book, "The Swift Programming Language". I feel the information from that section is represented here fairly completely and very concisely. Many of the samples come directly from the book. Some portions from the book's "Language Reference" section were also included where I felt a bit more information was helpful.

If you don't already have the book, it's free. You should probably get it.

Contributors

Thanks to Rafał Wójcik for his quick work to update these playgrounds to incorporate the Swift language changes that came with XCode Beta 3.