Skip to content

Interworking with Obj-C app - 80% of methods not available #37

@ilia510

Description

@ilia510

Hey,

I've been trying to integrate this library with some obj-c code; and I am stuck a bit. It seems like auto-generated file from Xcode has only very limited method set for each class:
`SWIFT_MODULE_NAMESPACE_PUSH("ARCharts")
@Class NSCoder;

SWIFT_CLASS("_TtC8ARCharts10ARBarChart")
@interface ARBarChart : SCNNode
@Property (nonatomic) double animationDuration;

  • (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
  • (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  • (void)reloadGraph;
    /// Render the chart in the SCNView.
  • (void)draw;
    /// Remove any highlighting currently active on this chart.
  • (void)unhighlight;
    @end`

I compiled the Swift code; and played around - it seems like the problem is Delegate pattern - adding @objc flag to public method leads to an error:

screen shot 2017-12-23 at 14 03 50

And then of course the method is not supported:
screen shot 2017-12-23 at 14 04 10

Does anybody tried to connect the library to obj-c code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions