Member-only story
The Swift Dependency Injection Series
Last Updated: May 13, 2026
I’ve written quite a few articles on Dependency Injection, ever since I created Resolver back in 2018. So I decided to create this list to gather them all up into one handy reference.
Note that articles marked with an asterisk (*) are recommended reading.
Note that development of Factory 3.1 is underway. If you’d like a peek at what’s coming, or if you have suggestions or recommendations, then checkout the Factory repository.
Factory
Factory is my latest open-source dependency injection library, and a successor to Resolver. Factory is fast, lightweight, and compile-time safe.
Exploring Factory Macros — NEW
Dependency injection without the ceremony.
Swift Macros Still Aren’t Ready for Prime Time — NEW
They’re clever. They’re powerful. And they’re almost guaranteed to ruin your afternoon.
Factory: Macro Misadventures
Why attempting to add Swift Macros to Factory was a study in compromise.








