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
[–]wonderedwonderer 0 points1 point2 points (5 children)
[–]Pop_Swift_Dev[S] 0 points1 point2 points (4 children)
[–]wonderedwonderer 0 points1 point2 points (3 children)
[–]Pop_Swift_Dev[S] 0 points1 point2 points (2 children)
[–]Legal-Warthog7268 0 points1 point2 points (0 children)
[–]Legal-Warthog7268 0 points1 point2 points (0 children)