Open bolismauro opened 7 years ago
Hi,
sorry, but Generic classes are not visible to the Objective-C runtime which injection relies on so this has proven not to be possible.
Alright, no problem :) I'll try to leverage (view) composition to get the effect I want
class ContainerView: GenericView<ConcreteModel> {
// add innerview as subview
}
class InnerView: UIView {..}
it should work, right?
Hi, I read here https://github.com/johnno1962/injectionforxcode/issues/198 that the injection is not supposed to work for generic classes.
Is there a way to make it work, or is it enough to have a generic in the class hierarchy to disallow the injection? For instance
doesn't work.
Thanks!