How to use swift library in NativeScript?

前端 未结 1 1337
情书的邮戳
情书的邮戳 2021-02-19 19:29

I am trying to use this ios-charts library in NativeScript. This library is written in Swift and not in Objective-C. Can I use it? I have tried to use it but it is giving me an

相关标签:
1条回答
  • 2021-02-19 19:57

    You can check for example my dialog plug-in: https://github.com/enchev/nativescript-dialog

    I'm consuming Swift library SDCAlertView and you can find more info about how to setup this in the pod and xconfig files: https://github.com/enchev/nativescript-dialog/tree/master/platforms/ios

    All classes most probably are avaialble in the global context. For example:

    var chart = new BarChartView(); 
    
    0 讨论(0)
提交回复
热议问题