At WHOOP, we are always working on improving developer efficiency through designing simple APIs within re-usable code. In our iOS codebase, we started to migrate from a monolithic app target to a suite of Swift Packages to help modularize our codebase and speed up our build times. As we started to modularize, we ran into a roadblock: how do we properly hide implementation details for our shared classes while keeping dependency management simple?
Whoop iOS Dependency Injection
· 4 min read