Design Patterns in Swift — Observer

Ruslan Dzhafarov
5 min readJan 23, 2023

--

The Observer design pattern is a software design pattern that allows an object, called the subject, to notify other objects, called observers, of any changes to its state. This pattern is useful in situations where one object needs to be aware of changes in another object, without having a tightly coupled relationship between the two. In this article, we will discuss the Observer design pattern and provide examples of its use in Swift.

--

--