1. Lets Get Started
  2. Functions
  3. Variables and Constants
  4. Collections
  5. Flexible Functions
  6. Enumerations
  7. Structs
  8. Classes
  9. Flexible Types
  10. Now that we're done


This is the Second Edition of the best selling book that gets you up and going quickly writing code in the Swift Programming Language.

Swift is Apple's new language for writing robust and performant iOS and OS X apps. Swift is now open source and continues to evolve.

The first edition appeared while Swift was in beta and was updated through Swift 2.1.

This second edition picks up where the last edition left off and will evolve along with the language through Swift 3.0 and beyond!

If you're an experienced developer who knows at least one modern programming language, this book will teach you how to think and program in Swift. Swift's design is inspired by elements from object-oriented, functional, and generic programming.

Start up the latest public version of Xcode, create a new playground, and code along with us.

You can read the book in iBooks or on any device that supports ePub or mobi if you buy the eBook from Gumroad. It is also available as an ePub from the iBookstore.

Single column view is recommended for either format. The book is best viewed as an ePub on a device that supports scroll view and uses the original fonts.