NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

The Zen of Swift

Paul Hudson    @twostraws   

Updated for Xcode 14.2

Swift is a modern, powerful, brilliant programming language that you can use to build apps for iPhone, iPad, Apple Watch, Apple TV, Mac, and more. Although it’s not an easy language to learn compared to some others, it does allow you to build any app you can dream of while also being an extraordinary valuable skill for a future career if you wanted.

I’ve written many books about Swift that focus on the how of coding – how do you embed interactive maps in your user interfaces, how do you create custom graphics, and so on. This book is different, because it’s focusing on the why of Swift: it’s designed to explain why all the key language features are important and useful, so you can understand them in a practical context.

This book has partly been designed to accompany the variety of beginner courses I have produced, such as Swift in Sixty Seconds and the 100 Days of Swift and SwiftUI. Those courses are designed to give you practical experience building things with Swift, but when you’re just starting out you’ll find yourself asking questions like “I get that Swift has functions, but why does it have them?”

Well, this book is designed to answer them all. Yes, there will be some more code here, but always with the purpose of explaining to why a particular feature is useful in practical software development.

I’ve tried to make this book as accessible as possible, but that doesn’t mean I have oversimplified things. Instead, I’ve just tried to assume nothing about readers (so you can read any chapter of the book in whatever order you want), while also keeping my language and examples as clear and straightforward as possible.

Anyway, I hope this proves useful for you – Swift is so much fun to work with, and I hope that this book plus my practical hands-on tutorials can combine to help you achieve your goals with Swift faster than ever.

Hacking with Swift is sponsored by Waldo

SPONSORED Thorough mobile testing hasn’t been efficient testing. With Waldo Sessions, it can be! Test early, test often, test directly in your browser and share the replay with your team.

Try for free today!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Buy Pro Swift Buy Pro SwiftUI Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let us know!

Average rating: 5.0/5

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.