Is there any work in KMM to convert the generated ...
# multiplatform
j
Is there any work in KMM to convert the generated ObjC code to swift?
j
It depends on what you mean by that. KMM doesn’t just convert Kotlin code to Obj-C, but it allows the languages to work together in tandem. Kotlin code is compiled to machine code and runs natively, and the compiler produces Obj-C headers to allow Obj-C code to call the Kotlin code, as if it’s Objective-C. This is why when you use Kotlin from Swift, it has the limitations that it does. Now, there are tools like SKIE which make this interop better. They generate some Swift wrappers around the Obj-C code that makes it more “Swifty”. But, at the end of the day you’re still calling into Obj-C.
j
This is interesting. I was mostly looking at something like this. Basically letting the objc interop stay, but giving us Swift objects right away. I manually make them now, which isn't that bad, but it would be nice if was just part of the build.