Replies: 1 comment
-
Answering for myself. I do have another question thou. |
Beta Was this translation helpful? Give feedback.
-
Answering for myself. I do have another question thou. |
Beta Was this translation helpful? Give feedback.
-
Hi Michael,
You have done great work with factory and resolver. I am currently refactoring from Resolver to Factory and got issue that I need some advice.
I do have App module where I created the Container {
var backGroundManager: Factory {
self { BackGroundManager() }.scope(.application)
}
}
Then I have common module where @injected var backGroundManager: BackgroundManager
is used in resolver style. If changed @injected(\Container.backGroundManager) var backGroundManager
however since this is another module I have error generic parameter could not be inferred. Value type Container has
no member backGroundManager.
Just wonder what I am missing here? Could you please guide how to fix this. Thanks.
-H
Beta Was this translation helpful? Give feedback.
All reactions