Buy the PDF

A whirlwind tour of the Swift programming language

Swift is a wonderful language that gives you an easy entry-point into the Apple developer ecosystem. If you've been put off developing for OS X and iOS because of the need to learn Objective-C, now is the time to start. Swift offers a relatively smooth transition from languages like Ruby and Python. This short book offers you a whirlwind tour of Swift. I assume you can already program in another language. The aim of this book is to quicky and succinctly introduce and demonstrate all the major features of the Swift programming language.

Swift 2 Tested with Swift 2.2 and Xcode 7.3.

Read it online

  1. Introduction
  2. Running Code
  3. Basics
  4. Constants and Variables
  5. Static Typing and Type Inference
  6. Arrays
  7. Dictionaries
  8. Tuples
  9. Control Flow
  10. Optionals
  11. Functions and Closures
  12. Classes
  13. Structures
  14. Enumerations
  15. Protocols
  16. Extensions
  17. Memory Management
  18. Error handling
  19. Generics
  20. What next?