Is there a plan to make Kotlin generics available ...
# multiplatform
n
Is there a plan to make Kotlin generics available from Swift? It’s a shame I get untyped definitions in Swift, while Kotlin and Swift both support generics. I’m talking in the context of using an iOS framework produced from a MPP.
2
g
Kotlin and Swift generics are quite different, so it's not so easy. But still hope to see some support in the future
s
Apple has some non-public ObjC syntax for better support for generics that would allow Kotlin to expose better generics support in its interfaces. Officially they can only be turned on for collection types but unofficially one can do almost the same amount of things with generics in ObjC as one can in Kotlin.
g
Good to hear. Curious about K/N team plans about it
c
hey @Sam do you know where I can find more info about that? Afaik generics are just not supported by objc, and as Andrey said swift and kotlin/java generics are quite different
s