hi Tiago Alves I am the author of this article, sure the plugins heavily depend on macro so we need write swift class extension Objc class, and for Objc Class, it is just a wrapper to expose method defined in swift using macro.
2018-05-03 19:00 GMT+08:00 Tiago Alves <[email protected]>: > Hi! > > I am developing a plugin in ObjC and running into countless on iOS mixing > ObjC, Swift frameworks and other Weex plugins (e.g., natjs). > > Recently, I found this: https://weex.apache.org/guide/extend-module-using- > swift.html > It shows a way to use Weex with Swift, but says nothing about using Swift > in a plugin. > > Is it possible to use swift? I don’t think so because the Weex plugin api > relies heavily on macros, which are not translatable to Swift. > > Do you think it is worth a try to use Swift to build a plugin? > > Thanks, > Tiago >
