Is there a way to add swift code to the multiplatf...
# ios
w
Is there a way to add swift code to the multiplatform project? I found a repo where there is a "swift" folder alongside the "kotlin" folder into "iosMain". I tried to do it but it seems that files get ignored. Could it be a custom gradle plugin? I'm referring to: https://github.com/icerockdev/moko-widgets/tree/master/widgets-collection/src/iosMain
w
oh, got it! They add that files to the pod created.. does intelliSense or compilation checks work on that files then?
t
AFAIK the only Jetbrains IDEs that support that for Swift are Appcode and CLion. Wether they do in this configuration is anyone’s guess. But then the MPP part probably won’t work (Appcode has some support but it’s several versions out of date)
w
ok, thanks 🙂
a
in widgets implemented additional cocoapods with swift code, where used @objc marks for cinterop with kotlin, and in build.gradle of multiplatform modules added cinterop with this cocoapods. here podspec and here connect to gradle with mobile multiplatform plugin. here call from kotlin for class marked @objc
we work with swift cocoapods just with Xcode
w
thanks a lot!