Early Access

Advanced Swift

Get early access

eBook

In-progress PDF and private GitHub access

$39

Buy

eBook + Paperback

In-progress eBook, plus Paperback (est. Fall 2015). Free US shipping.

$59

Buy

What is early access?

This book isn’t finished, so we’re opening up early access and continously releasing new and updated chapters as we write them.

Many chapters won’t be copy-edited yet, but you’ll have an unique opportunity to be the first to read the book, and contribute to its development.

You’ll get:

  • Immediate access to PDF
  • Continuous updates as we release new chapters
  • Access to a GitHub repo with the Markdown files

More information available in the FAQ below.

Advanced Swift takes you through Swift’s features, from low-level programming to high-level abstractions.

In this book, we’ll write about advanced concepts in Swift programming. If you have read the Swift Programming Guide, and want to explore more, this book is for you.

Swift is a great language for systems programming, but also lends itself for very high-level programming. We’ll explore both high-level topics (for example, programming with generics and protocols), as well as low-level topics (for example, wrapping a C library and string internals).

What’ll be in the book

  • Collections

    How to use Swift’s built-in collection types and how to build your own

  • Optionals

    Improve the safety and clarity of your code

  • Generics

    Write functions and methods that work on multiple types

  • Protocols

    Use protocols to simplify your code

  • Strings

    How to use strings and how they work with unicode.

  • Mutability

    Swift offers powerful features for dealing with mutability

  • Memory Management

    Learn how value types and reference types interact

  • Error Handling

    Understand Swift’s built-in error handling

  • Interoperability

    Wrap calls to C libraries and present them in Swift using a natural API