Chapter 7
Adopting Design Patterns in Swift
Section 1
Creational Patterns
Creational patterns are design patterns that deal with how an object is created. There are two basic ideas behind creational patterns. The first is encapsulating the knowledge of which concrete types should be created and the second is hiding how instances of these types are created. - Implement the singleton pattern - Improve the creation of complex structures by using the builder pattern - Implement the factory method pattern