A sample project for my blog post post How to: create your SUPER simple dependency injector framework in Swift, where I show how to create a simple dependecies injector container in Swift.
This is a quote from the post:
...We have a lot of alternatives from which we can choose: Swinject, Weaver etc. This frameworks come with a lot of features like: object graph construction, injection with property wrappers, instance persistence etc. This are all useful feature, but if your needs are very limited (just a dependecies container register/resolver using protocol and classes) the previous frameworks gives you just a big overhead and complexity on you code. This is why for my recent project I tried to write my own very simple dependencies injector container by leveraging the power of Swift Metatype and the Hashable protocol. Let's go and see the how I created it...
Click on the link above to read the posts.