I have library developed in Objective C. In that library, one of my property expects the registration of my class. So that it will call the pre-defined method on that class. (Some what like delegate).
Below is my objective C property and how I set in swift class:
Builder.registerMapperClass(KeyMapper().self)
For now, I have passed KeyMapper().self
, but this is not working. I also tried KeyMapper()
. Because in Objective C, it is throwing error as below
-[PROJECTNAME.KeyMapper mapPropertyForKey:ForClass:]: unrecognized selector sent to instance 0x7f9911f22c60"
Here, PROJECTNAME is appended before the class name. Now, since this method will be called on Class which is not present with name PROJECTNAME.KeyMapper
but KeyMapper
.
So how to solve this issue?