Any plan for swift interop support instead of obje...
# kotlin-native
b
Any plan for swift interop support instead of objective C?
b
@russhwolf thanks for sharing that
j
A vague sense of hope can be found in the “KMP is now stable” blogpost from the other day, where it’s mentioned as a future update: https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-stable/#explore-the-future-of-kotlin-multiplatform
🎉 3
e
I think the Kotlin team is busy with K2. Once K2 is delivered, other major enhancements will be unlocked
2
l
Swift also just recently stabilized the ABI enough for interop to work. Hence why C++ is the only language (right now) with pure-Swift interop (some claim Swift interop, but if you look closely, they require objc annotation), and even the C++ version is experimental.
j
Swift’s stable ABI was in 2019/iOS 12.2 which seems quite a while ago? Though I don’t know too much how interoperability would work so maybe that’s recent to the amount of work required.
l
Looking at their docs again, it looks like I meant the section labeled 'Module stability (and ABI stability)', not ABI stability. Swift 5 brought ABI stability that allowed to switch standard libraries. Stability across Swift compilers (what you'd want to have to enable interop) is still in progress. https://www.swift.org/blog/abi-stability-and-more/
I'd argue what they have is just part of ABI stability, since compiler and library stability are still in progress, but I guess those are the terms they use.
e
Just seen this.
K 1
Should answer your question.
Ah well, it was already written in the blog post lol, had forgotten about it
b
@Edoardo Luppi thanks for sharing