Hello! At first I would like to thank all of the `...
# swift-export
m
Hello! At first I would like to thank all of the
swift-export
team members for doing great work! I have a question: Is there planned support for providing interop with native libraries (like in here)? Or will this tool be used only to translate kotlin to swift? I am mainly interested in creating a SPM package that has some dependencies to a native library. Right now one can acheive that by wrapping objective C but having an actual Swift library would be awesome! Thanks 🙌
c
Yeah this is something I'm interested on too, native swift support for libraries, that seems like a higher priority IMO?
s
Hey! Import of Swift libraries to Kotlin is out of scope of this project. And it is unlikely that we will start working on something like this before we release Swift export. Creating a user-friendly "Swift import" is actually a much bigger and harder project than Swift export. Swift is a great language with a great amount of features which couldn't be easily mapped to Kotlin. And unlike C and Objective-C, the list of language features is growing every year. I'm not saying that it is fundamentally impossible, of course. But our approach to Swift import might be significantly different from cinterop, for example.
K 1
👍 1