Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilia510 opened this issue Dec 23, 2017 · 0 comments
Open

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

ilia510 opened this issue Dec 23, 2017 · 0 comments

Comments

@ilia510
Copy link

ilia510 commented Dec 23, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant