Liftric / DIKit

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

Constructor dependency injection #43

Open Narayane opened 4 years ago

Narayane commented 4 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