Liftric / DIKit

Dependency Injection Framework for Swift, inspired by KOIN.
MIT License
103 stars 17 forks source link

Constructor dependency injection #43

Open Narayane opened 3 years ago

Narayane commented 3 years ago

Hi,

Unlike Koin, it seems constructor dependency injection is not supported, doesn't it?

Capture d’écran 2020-11-08 à 23 19 26
serjooo commented 3 years ago

Hey @Narayane,

Since resolve exists in the same scope you would need to help the compiler here and do the following DIKit.resolve() and it should work fine