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
Rafs
11/07/2024, 10:02 AM
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.