If you are looking for something specific, you can jump right into the relevant section from here.
- Prototype Pattern
- Factory Method Pattern
- Abstract Factory Pattern
- Builder Pattern
- Singleton Design Pattern
This type of design pattern is used to instantiate a new object by cloning an existing object called prototype.
It is the most commonly used design pattern. Basically, it just abstracts the creation of an object.
This design pattern provides an interface for creating families of related objects without specifying their concrete classes. They are often implemented with Factory Method pattern.
This design pattern separate the process of creation of objects from its actual usage.
In swift we define Singleton classes by using the static keyword. It means that the object is going to be instantiated only once. Static properties are lazy initialized and will not be instantiated until called. There is only one copy of this object and is used by the other objects globally.
For more, check the Medium Blog