Hello people, anybody using kotlin version 2.2.20,...
# swift-export
c
Hello people, anybody using kotlin version 2.2.20, I am in a tough spot deciding if I should go with kotlin 2.2.10 and use Touchlab SKIE. Can you let me know which one would you prefer and why?
s
Hi Chirag! If you need flow/coroutine export then imo SKIE is your best bet (though there are other Obj-C export enhancement options too). If you don’t, you might be OK using swift-export with 2.2.20. Bear in mind the docs and community support will be less established for Swift export than Obj-C though.
c
Yes, that was my concern. Although currently my project is completely Compose Multiplatform but with widgets there will be time the interop would be needed
g
You can update Kotlin version as much as you want and still export to objc. If you need Flow/Coroutines support, that's the way to go. I'm running some tests with Kotlin 2.3.0 and still exporting to objc. Flow and Coroutines export are false by default in Swift Export.
a
which one would you prefer and why
Hello there 🙂 I feel like you are talking about production usage. For that I have an answer. Swift Export is currently marked as Experimental. Please consult our documentation on what that means - https://kotlinlang.org/docs/components-stability.html#stability-levels-explained I would discourage usage of Swift Export in production at this moment. there are too many known bugs, there are too many *UN*known bugs, and in case you encounter a blocker - there is a chance that the problem would not be solved quickly enough. But please feel free to experiment with it and share you experience 🙂