Seventh Edition — Razeware LLC, 2021 - 555 p.
In the last seven years, Swift has gone from a secret project at Apple, Inc. to a full-blown, open-source, community-driven language. It continues to refine its core goal of being a general-purpose language that supports safety, speed, and expressiveness.
Despite its progressive, industrial-strength nature, Swift is an excellent choice for the beginning programmer since Xcode offers a sandbox-type environment where you can directly execute Swift statements to try out various language features without creating a whole app first.
Developers worldwide use Swift to build thousands of amazing apps for iOS, iPad, macOS, tvOS, and watchOS. Swift is also in server-side technology on non-Apple platforms. That means what you learn in this book will be extremely useful as you expand your development skills and possibly work as a developer someday.
You’ll learn about basic things like constants, values, operations, and types, and move up to more intermediate concepts like data structures, classes, and enumerations. Finally, you’ll finish off by getting in-depth knowledge about protocol extensions, custom operators, protocol-oriented programming, and generics. Swift lets you create beautiful abstractions to solve real-world problems that you will learn about in this book.
Swift is also a lot of fun! It’s easy to try out small snippets of code as you test new ideas. Programming is a hands-on experience, and Swift makes it fast and easy to follow along with this book and explore on your own.
Who this book is forIf you’re a complete beginner at programming, this is the book for you! There are short exercises and challenges throughout the book to give you some programming practice and test your knowledge along the way.