You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
definition.useInitializer("initWithDatabase:deserializerFactory:") {
(initializer) in
initializer.injectParameterWith(self.dataStoreAssembly.database())
initializer.injectParameterWith(self.dataStoreAssembly.deserializerFactory())
}
So far I understand, I should add @objc to DatabaseProtocol. Problem is that I can't do this since it has members that can't be represented in objective c
The text was updated successfully, but these errors were encountered:
claudioredi
changed the title
Is it possible to inject using "useInitializer" when constructor has swift pure protocol?
Is it possible to inject using "useInitializer" when method includes swift pure protocols?
Aug 20, 2015
I have the following initializer
and I try to inject parameters using
So far I understand, I should add
@objc
toDatabaseProtocol
. Problem is that I can't do this since it has members that can't be represented in objective cThe text was updated successfully, but these errors were encountered: