Share this page

by Jon Hoffman
Swift Version: 1.1

The Observer pattern is one of the design patterns that I tend to use the most. The basic principle behind this pattern is a listener registers with a broadcaster and then at some later point in time the broadcaster notifies the listener when some predefined event happens. This pattern can be used to facilitate the communication between decoupled objects and also to implement a one-to-many relationship. The Observer pattern falls into the behavior pattern category.

© 2015 SoSoSwift. Blog · About · Contact · Privacy policy · Terms of service · RSS