Preface

This book will help you understand when and how to implement the 23 patterns, as described by the gang of four (GoF), with the new language provided by Apple: Swift.

The main idea behind this book is to make it a reference book for implementing a specific pattern. This is the reason why I have divided this book into three categories: creational, structural, and behavioral patterns. For each category, you will find a chapter with a common structure: roles, a UML class diagram, participants, collaboration, illustration, and implementation with Swift.

This structure is an easy way to find the answers that you may ask yourself. In this book, I will first introduce you to the five creational patterns, followed by seven structural patterns, and then conclude with the eleven behavioral patterns, as defined by the GoF.