2

I am using Weex ios sdk. For exposing js method there is a pragma

#define WX_EXPORT_METHOD(method)

But this pragma is accessible in objective C file only. I need to use this in swift file.

Is there any way to do so ?

Brammanand Soni
  • 177
  • 1
  • 4
  • 12

1 Answers1

0

I think the solution of your work is to create Objective-c Bridging header look this :

https://github.com/apache/incubator-weex-site/blob/master/source/cn/guide/extend-module-using-swift.md

Hichem Romdhane
  • 364
  • 4
  • 15