Is there a way to use spm libraries from `iosMain`
# compose-ios
r
Is there a way to use spm libraries from
iosMain
1
r
No official way. You could use SPM within xCode and have an interface in Kotlin that you overwrite and dependency inject. Another way (I haven't tried it yet) would be this: https://github.com/PaGr0m/kotlin-spm-plugin/tree/master but you are limited to objective c code or the swift code has to be annotated
r
Thanks, i've been doing the interface approach and thought there was a simpler way cos i want to try and keep as much cos in kotlin as possible.
👍 1