Swift is a fantastic way to write software, whether it’s for phones, desktops, servers, or anything else that runs code. It’s a safe, fast, and interactive programming language that combines the best in modern language thinking with wisdom from the wider Apple engineering culture and the diverse contributions from its open-source community. The compiler is optimized for performance and the language is optimized for development, without compromising on either. Swift is friendly to new programmers. It’s an industrial-quality programming language that’s as expressive and enjoyable as a scripting language. Writing Swift code in a playground lets you experiment with code and see the results immediately, without the overhead of building and running an app. The following topics are covered in the book: The Basics of Swift - Basic Operators - Strings and Characters - Collection Types - Control Flow - Functions - Closures - Enumerations - Structures and Classes - Properties - Methods - Subscripts - Inheritance - Initialization - Deinitialization - Optional Chaining - Error Handling - Concurrency - Type Casting - Nested Types - Extensions - Protocols - Generics - Opaque Types - Automatic Reference Counting - Memory Safety - Access Control - Advanced Operators