
Design Patterns in Swift: Composite Pattern
Composite pattern is a nice little pattern that will help you manage complex hierarchies. It's commonly used to represent menus and directories/files. In this article we'll go over the theory and...

Composite pattern is a nice little pattern that will help you manage complex hierarchies. It's commonly used to represent menus and directories/files. In this article we'll go over the theory and...

Iterator pattern is a perfect choice for you when you need to traverse a collection of objects. It's fairly simple and it's so widely used that most collection types implement this pattern in the...

Command pattern is a very simple pattern that allows you to decouple a class that invokes a command from a class that knows how to perform it. This gives you incredible flexibility. In this article...

Chain of responsibility is a well-known pattern that you probably ran into without realising it. In this article we'll continue our journey on design patterns in swift and learn more about chain of...

If your objects can have multiple states, then you should consider implementing a state pattern. In this article we'll cover some theory on state pattern, and then we'll go over an example on how to...

Continuing on our journey with design patterns, this week we'll visit the observer pattern. This is a really simple pattern to implement. We'll quickly go through some theory and get down to...

Abstract factory is one of the creational design patterns. You probably encountered it in your development without realising. Here we'll cover the swift version of the text-book version of the design...

Everyone has heard of singletons. It's probably the simplest design pattern there is, yet, there are a few catches when implementing it. In this post, I'll go over the singleton design pattern and...