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- 01Introduction and setting up Swift 6.4
- 02Variables, constants, comments, and semicolons
- 03Numbers, booleans, and strings
- 04Operators and expressions
- 05Optionals and nil
- 06Control flow: if, switch, guard, and loops
- 07Collections and tuples
- 08Functions and closures
- 09Structures and enumerations
- 10Classes, inheritance, and ARC
- 11Protocols, extensions, and generics
- 12Error handling and typed throws
- 13Concurrency and Swift 6 data-race safety
- 14Ownership, macros, and modern Swift 6.4 features
- 15Swift Package Manager and Swift Testing
- 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.