$50 $25

Swift Design Patterns

89 ratings
Buy this

Swift Design Patterns

$50 $25
89 ratings

INCLUDES FREE UPDATES FOR SWIFT 7 AND BEYOND! Click here to read my update policy.

Learn smart, idiomatic techniques to design great Swift 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 6: 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.
  • INCLUDES VIDEOS: Includes hands-on walkthrough videos for all 22 platform patterns, language patterns, and classic patterns.

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 class 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!

PLUS: Your purchase includes hands-on walkthrough videos for all 22 platform patterns, language patterns, and classic patterns.

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

Download a free sample!

You can download the complete table of contents for this book here, or a 24-page sample PDF here.

What format is the book in?

You get PDF, ePub, Mobi, and HTML, all with no DRM attached.

The Hacking with Swift guarantee

We want everyone to be happy with all the Hacking with Swift courses they buy, both now and in the future, which is why all our books come with free lifetime Swift updates and free bonus content with our Frequent Flyer Club, and we also encourage folks to join our Slack community to help solve problems.

However, if you aren't happy with a course you bought from us, we offer a 30-day No Questions Asked refund policy. This applies to all books and video courses purchased through Gumroad, which is our primary distributor. So, if you aren't happy with your purchase, if you changed your mind, or if you just bought the wrong thing by accident, we can refund your purchase up to 30 days after it was made.

Any other questions?

If you have questions that aren't answered above, you can tweet me @twostraws or email me at paul@hackingwithswift.com.

50% off will be applied at checkout (Code BLACKFRIDAY24)
Buy this

You get the complete book in ePub, PDF, and HTML, all DRM-free.

Copy product URL

Ratings

4.9
(89 ratings)
5 stars
94%
4 stars
5%
3 stars
1%
2 stars
0%
1 star
0%