I tried to use your framework. Everything work perfectly except all functions returning something to javascript always show result as undefined in java script. For object properties everything is OK.
For example if my object has func1 returning string and in javascript I do:
var a = bridgingobject.func1(); // I get result undefined even the func1 defined as returning String (or NSString *). But if use property is starts working:
var a = bridgingobject.prop1; // exactly doing the same I get correct result. It just defined as property in Swift or Objective-C code, for objective-c it is even using same getter.
Thanks
I tried to use your framework. Everything work perfectly except all functions returning something to javascript always show result as undefined in java script. For object properties everything is OK.
For example if my object has func1 returning string and in javascript I do:
var a = bridgingobject.func1(); // I get result undefined even the func1 defined as returning String (or NSString *). But if use property is starts working:
var a = bridgingobject.prop1; // exactly doing the same I get correct result. It just defined as property in Swift or Objective-C code, for objective-c it is even using same getter.
Thanks