Closed FilipZawada closed 7 years ago
I’m afraid the instance level “injected” method is the least reliable part of injection particularly when Swift classes do not inherit from NSObject. I’ll take a look but I’d be reluctant to change the code at this stage.
Thanks, works great with notifications
Sounds good. I should have suggested that!
Example:
Results in EXC_BAD_ACCESS with a
name
var being"test"
on following code:A workaround is to declare
CustomClass
as@objc
, but the downside is that the object must inherit NSObject.Any ideas why is that and how to solve that?