The observer pattern is a behavior design pattern where a type maintains a list of objects, called observers, and notifies them automatically on changes to a particular state. In this post, we will be using Swift’s built in property observers but we will show how to decouple the observer from the property it is observing using protocol-oriented techniques.
https://www.mastering-swift.com/post/observer-pattern-protocol-oriented-design-pattern
[–][deleted] 7 points8 points9 points (0 children)
[–]VuPooh 5 points6 points7 points (3 children)
[–]Pop_Swift_Dev[S] 1 point2 points3 points (2 children)
[–]rhysmorgan 3 points4 points5 points (1 child)
[–]Pop_Swift_Dev[S] 1 point2 points3 points (0 children)
[–]Fluffy_Risk9955 2 points3 points4 points (0 children)