Hi. Can anyone help me with extension function fro...
# kotlin-native
y
Hi. Can anyone help me with extension function from Kotlin to swift? Seems like I’m not able to access the extension from Swift
m
Afair you can make an extensions function on a kotlin type as long as it doesn't have a generic type parameter. The reason is the lack of swift interoperability. Your kotlin types are only as good as objc types. And they are pretty bad ;)
l
Extension functions for interfaces aren't visible in Swift. One workaround is to change them to abstract classes, or use a top level function instead of an extension.