General question here: since Kotlin/Native support...
# kotlin-native
s
General question here: since Kotlin/Native supports exporting iOS frameworks that get compiled to Objective-C, is it preferable to develop host applications that use the framework in Objective-C as well instead of Swift? Are there any known issues with using K/N-compiled Objective-C frameworks in Swift?
k
“is it preferable to develop host applications that use the framework in Objective-C as well instead of Swift?” No, assuming you prefer Swift. Swift was designed to interop fairly well with Objc. You could ask the same question of Swift in general, really.
s
The “export” that happens is Kotlin code being compiled to an actual binary framework (bitcode, arm, x64). There is no intermediate translation to ObjC.
o
Usually, we find that using K/N frameworks from Swift is pretty simple, and it is explicit design goal to keep it this way.