Have a personal or library account? Click to login
Swift 2 Design Patterns Cover

Swift 2 Design Patterns

Build robust and scalable iOS and Mac OS X game applications

Paid access
|Sep 2025
Product purchase options

Build robust and scalable iOS and Mac OS X game applications

Key Features

    Book Description

    Swift is a multi-paradigm language. It has expressive features familiar to those used to work with modern functional languages, while also keeping the object-oriented features of Objective-C. It remains compatible with Apple’s legacy codes and frameworks. A design pattern systematically names, motivates, and explains a general design that addresses a recurring design problem in object-oriented systems. It describes the problem, the solution, when to apply the solution, and its consequences. It also gives implementation hints and examples. Knowledge about design patterns is also one of the best ways to make you different compared to other low-level developers.
    This book shows you how to use Swift 2 to learn about 23 Gang of Four (GoF) design patterns, and is organized into three categories. The book will present you the five creational patterns, followed by the seven structural patterns, and finishing with the 11 behavioral patterns as defined by the GoF. Each chapter will introduce the pattern by defining its role, which common problems the pattern should be used for, its generic UML representation, how each objects presented in the class diagram participate in the pattern, and what the role of each of these objects is. The book then presents you with a concrete case as an illustration that will be used to implement the pattern using Swift.

    What you will learn

      Who this book is for

      This book is intended for competent Swift developers who want to apply enduring design patterns with Swift to structure and scale their application code.

      Table of Contents

      1. Creational Patterns
      2. Structural Patterns : Decorator, Proxy and Bridge
      3. Structural Patterns : Composite and Flyweight
      4. Structural Patterns : Adapter and Facade
      5. Behavioral Patterns : Strategy, State and Template Method
      6. Behavorial Patterns : Chain of Responsibility and Command
      7. Behavorial Patterns : Iterator, Mediator and Observer
      8. Behavorial Patterns : Visitor, Interpreter and Memento
      PDF ISBN: 978-1-78588-611-9
      Publisher: Packt Publishing Limited
      Copyright owner: © 2015 Packt Publishing Limited
      Publication date: 2025
      Language: English
      Pages: 224