The Observer Design Pattern in Swift
In this article, we will learn what is the Observer design pattern and how to use it.
The use case
Let’s say we have a weather station that regularly takes measures of temperature and humidity:
struct WeatherData: Equatable {
var temperature: Int...
kaww.hashnode.dev5 min read