I wanted to learn more about Swift macros, so I challenged myself to try to implement something that resembled Dagger (a popular dependency injection framework for Java and Android) in Swift.
The implementation ended up being pretty different, but the interface has a lot of similarities!
https://github.com/shackley/swift-blade
Let me know what you think!