Apress Access

Pro Design Patterns in Swift

By Adam Freeman

  • eBook Price: $34.99
Buy eBook Buy Print Book

Learn how to apply classic design patterns to iOS app development using Swift.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-484203-95-8
  • 592 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: January 21, 2015
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Beginning Xcode: Swift 3 Edition
  • Practical Swift
  • Migrating to Swift from Flash and ActionScript
  • Agile Swift
  • Appium Recipes
Full Description

The Swift programming language has transformed the world of iOS development and started a new age of modern development. Pro Design Patterns in Swift shows you how to harness the power and flexibility of Swift to apply the most important and enduring design patterns to your applications, taking your development projects to master level.

This book will teach you those design patterns that have always been present at some level in your code, but may not have been recognized, acknowledged, or fully utilized. Implementation of specific pattern approaches will prove their value to any Swift developer.

Best-selling author Adam Freeman explains how to get the most from design patterns. He starts with the nuts-and-bolts and shows you everything through to advanced features, going in-depth to give you the knowledge you need.

Pro Design Patterns in Swift brings design patterns to life and shows you how to bring structure and scale to your Swift code with a practical, no-nonsense approach.

What you’ll learn

  • Gain a solid, practical understanding of why and when design patterns are useful
  • Master classic patterns like singleton, abstract factory, chain of responsibility, and observer
  • Discover less well-known patterns like memento, composite, command, and mediator
  • Understand how Swift provides essential language features for writing well-structured code that is easy to understand, simple to test and readily maintainable.
  • Learn how to consume the Cocoa API to implement classic design patterns
  • Build on your existing programming knowledge to get up and running with design patterns in Swift quickly and effectively

Who this book is for

Any professional or aspiring iOS developer will find productivity, efficiency, and effectiveness of software development enhanced by the methods and practice delivered by ProDesign Patterns in Swift.

Table of Contents

Table of Contents

Part 1 - Getting Started

1. Understanding Design Patterns

2. Getting Used to Xcode

3. Creating the SportsStore App

Part 2 - The Creation Patterns

4. The Object Template Pattern

5. The Prototype Pattern

6. The Singleton Pattern

7. The Object Pool Pattern

8. Object Pool Variations

9. The Factory Method Pattern

10. The Abstract Factory Pattern

11. The Builder Pattern

Part 3 - The Structural Patterns

12. The Adapter Pattern

13. The Bridge Pattern

14. The Decorator Pattern

15. The Composite Pattern

16. The Facade Pattern

17. The Flyweight Pattern

18. The Proxy Pattern

Part 4 - The Behavioral Patterns

19. The Chain of Responsibility Pattern

20. The Command Pattern

21. The Mediator Pattern

22. The Observer Pattern

23. The Memento Pattern

24. The Strategy Pattern

25. The Visitor Pattern

26. The Template Method Pattern

Part 5 - The MVC Pattern

27. The MVC Pattern

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. iOS 7 Development Recipes


      View Book

    2. Swift Game Programming for Absolute Beginners


      View Book

    3. iPhone and iPad Apps for Absolute Beginners


      View Book

    4. Learn iOS 8 App Development


      View Book