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

Swift Design Patterns

Join over 90,000 readers today

Airbnb Apple BBC Cisco eBay GitHub Google IBM Intel Microsoft Nike Salesforce

MASTER THE BEST PRACTICES

Includes free updates for new Swift versions – click to read my update policy

Learn smart, idiomatic techniques to design great apps, from using MVC effectively through to MVVM, delegation, protocols, and more.


ALL PLATFORMS

This book teaches patterns you can use whether you work on iOS, macOS, watchOS, or any other platform that uses Swift or SwiftUI.

SWIFT 5.7

Don't waste time with out of date tutorials – here you can learn powerful, expressive Swift the way it was meant to be written.

HANDS ON

All patterns come with practical, real-world code examples so you can see why they are useful and apply them in your own work.

FULL COVERAGE

Over 20 design patterns are covered in detail, so you can try them all and find what works best for your own projects.

What's in the book


Swift Design Patterns will teach you how to write cleaner, more maintainable apps. Drawing examples from SwiftUI, Cocoa, Cocoa Touch, and other key Apple frameworks, you'll learn how to design elegant apps that are easier to read, easier to scale, and easier to test.

The book includes over 20 of the most important design patterns for Swift developers, including:

  • The model-view-controller pattern that lies at the heart of Apple's classic UIKit and AppKit frameworks, plus MVVM as a viable alternative.
  • A detailed discussion of what makes SwiftUI special, including hands-on tips for making SwiftUI apps more scalable and more testable.
  • Extensions, protocols, and protocol extensions that let you architect your code horizontally.
  • Notifications, selectors, and the target/action pattern to control code without increasing coupling.
  • Observers, accessors, keypaths, and delegation so you can monitor values and respond when they change.
  • Archiving data using the Codable protocol.
  • Singletons for working with shared resources.
  • Concurrency for making the most of modern Apple devices.
  • And more!

If want to improve the way you architect your Swift apps, this is the book for you.

Download full table of contents

Download free 24-page sample

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.