nalexn / clean-architecture-swiftui

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependancy injection framework

hydro1337x opened this issue · comments

Would you ever consider using a lightweight DI framework like Resolver: https://github.com/hmlongco/Resolver instead of your dependancy injector or would that be an overkill? Looking forward to hearing your thoughts

I don't want to introduce a third-party dependency when it's not needed, especially for such a tiny project where I can go without it. You certainly can use that Resolver if you like it.
Constructor injection would work for larger projects as well, and is, in my opinion, a cleaner way of declaring and managing the dependencies in the modules