Skip to content

Swift Handbook

Before diving into iOS or macOS frameworks, having a clear grip on Swift optionals, structs, protocols, closures, and Swift 6 concurrency saves hours of compiler headaches.

This handbook introduces modern Swift 6.4 cleanly and practically, whether you are coming from JavaScript, Python, or picking up your first compiled language.

Table of contents

16 chapters
  1. 01Introduction and setting up Swift 6.4
  2. 02Variables, constants, comments, and semicolons
  3. 03Numbers, booleans, and strings
  4. 04Operators and expressions
  5. 05Optionals and nil
  6. 06Control flow: if, switch, guard, and loops
  7. 07Collections and tuples
  8. 08Functions and closures
  9. 09Structures and enumerations
  10. 10Classes, inheritance, and ARC
  11. 11Protocols, extensions, and generics
  12. 12Error handling and typed throws
  13. 13Concurrency and Swift 6 data-race safety
  14. 14Ownership, macros, and modern Swift 6.4 features
  15. 15Swift Package Manager and Swift Testing
  16. 16Where to go from here

Get the Swift Handbook for free: subscribe to my newsletter and I'll send it your way, together with all my other free programming ebooks.

Want the whole collection? See all my free ebooks.

By subscribing you agree to receive my newsletter (new tutorials, book releases, and courses). You can unsubscribe anytime from the link at the bottom of every email. Your email is the only data collected, stored securely in the EU, and never shared.