https://kotlinlang.org logo
w

william

11/12/2020, 9:09 PM
does anyone know of some swift code gen plugins? i.e. something that allows me to annotate an enum and then it will generate the swift code for the enum and maybe appropriate methods to convert the objc "enum" thing into a swift enum? or used for other purposes? I found https://github.com/outfoxx/swiftpoet which I am curious if people have taken advantage of for iOS interop
c

Casey Brooks

11/12/2020, 9:50 PM
All Swiftpoet does is generate Swift source files, it doesnt interpret Swift code or anything magical like that. But Sourcery is a project you may want to check out https://github.com/krzysztofzablocki/Sourcery
w

william

11/12/2020, 10:27 PM
yeah i know, just brought it up as a means of generating swift source