Skip to content

Is it possible for bridging object return some value in functions? #74

@bounin

Description

@bounin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions