plugins {
id("dev.icerock.moko.kswift") version "0.3.0"
}
Problem
If we define extension function over, e.g. String type in Kotlin, this function will not be translated as an extension in Swift:
// StringExt.kt
val String.myExtensionProperty: String get() = "123"
fun String.myExtensionFunction() { ... }
private fun example() {
val result = "123".myExtensionProperty
"123".myExtensionFunction()
}
Plugin version I've used
Problem
If we define extension function over, e.g.
String
type in Kotlin, this function will not be translated as an extension in Swift:moko-kwift
didn't handle this issue, because extension function didn't pass the filter =)It would be great if moko-kswift will generate extensions in such case.