Jack Rosen

WhoopDI

Swift

A simple dependency injection framework for Swift


What it is

WhoopDI is a simple dependency injection designed to be safe and simple to use. This allows you to perform injections across your app and hide dependencies and complicated initialization of objects behind simple boundaries. This allows you to keep the implementation details of your objects internal, while allowing you flexibility and ease of injection at use sites.

The problem

To build modules that can be updated as business requirements change, it is important to properly encapsulate your class hierarchy, but without a simple way of injecting our dependencies, we had to make all classes in our dependency trees public to be constructed.

My role