Publish-Subscribe in Swift

For one of my current projects, I had to implement an event-based messaging system. The first implementation boiled down to a bunch of NSNotificiation and addObserver. »