Skip to content
Simon J Stuart edited this page Sep 4, 2022 · 4 revisions

Welcome to the EventDrivenSwift wiki!

The purpose of this Wiki is to provide you with a central location to learn about every aspect of EventDrivenSwift, particularly in respect of integrating this library into your Swift projects.

What is Event Driven Development?

Event-Driven Development is a modern expansion of the traditional Observer Pattern.

Where Event-Driven Development differs is that, instead of the Observer having to directly register itself with the Observable; in an Event-Driven System, the Observer does not need to be contextually aware of the Observable at all.

Instead, individual Components of your system can - whenever they need to - Listen for and Dispatch Events, which are nothing more than a Payload of Information with a Defined Type.

In this way, what would have been considered an Observer is now entirely Decoupled from what would have been considered the Observable.

Even better, the Observer does not need to care about where an Event is coming from. In this way, multiple Components within your system can produce and Dispatch Events, and the Observer can treat them all equally.

Clone this wiki locally