hi, I have a `shared` module from which I want to ...
# multiplatform
a
hi, I have a
shared
module from which I want to export a pure Swift API consuming the Kotlin shared code in
commonMain
... I was able to achieve the native API consuming the Kotlin multiplatform code, but the Swift API leaves inside the
iosApp
directory of my
composeApp
module, that is the module I use as a demo for the functionality inside the
shared
module. My question is, is there a way to export that native Swift API that I wrote in the
iosApp
directory along with the XCFramework exported from the
shared
module?
f
Ask on #C073GUW6WN9
👍 1
a
Will do, thank you
is there a way to achieve this without Swift Export? I am trying to do it with the existing tooling, I can't use Swift Export because this will go into production ideally
f
If you care about dev experience, add to your distribution the SKIE plugin
You can use add the swift bundle feature of skie
a
Yes, I am using SKIE… but that's not my issue… the issue I have is that I need to export a native SwiftUI API and CMP does not allow me to do that. So I was thinking on creating some wrappers of my Kotlin code and expose those wrappers for iOS instead of exposing directly the generated module
a
Cool! Didn't know about it… will take a look
Thank you very much!
🚀 1
@François just in case, do you have a working example of Swift Bundling? I am trying it but I don't know if it is working properly because I cannot see the code I wrote in the Swift files from the
iosApp
code
SKIE is detecting and bundling (apparently) the Swift code I have in
commonMain
, but for some reason I can't use it when I import the XCFramework in the
iosApp