hi all! we at IceRock release new gradle plugin for KMM - MOKO KSwift. With this plugin you can generate Swift-friendly API for Kotlin/Native framework. See examples in readme, in sample project and also you can read post on medium. Also you can extend logic of plugin inside your project - implement own generators of Swift code.
Feel free to give feedback - here in thread or on github issues.
š 5
š¦ 4
swift 7
K 13
š 1
a
ankushg
08/09/2021, 4:02 PM
Nice!
Some potential other generators:
⢠exhaustive whens/switches for Kotlin enums (either via a generated extension with blocks for every case, or maybe something like this)
⢠support for default arguments in swift, either via generated overloads or maybe generating a Swift extension with default arguments that just delegates to the right Kotlin method
a
alex009
08/11/2021, 10:40 AM
thank! i will add this suggestions to issues on github