Hi, I am trying to implement Google Maps in my KMM...
# multiplatform
e
Hi, I am trying to implement Google Maps in my KMM project. I made it work for Android, but I am not able to implement the
actual
class for iOS. I found a couple of projects that are implementing it, but they are using cocoa pods and I am using SPM. I have installed the package
<https://github.com/googlemaps/ios-maps-sdk/>
and now I would like to use this inside my kotlin code. With cocoa pods I see that is possible to do something like this: https://github.com/ismai117/KMap/blob/master/composeApp/src/iosMain/kotlin/org/ncgroup/kmap/GoogleMapView.ios.kt but i can not make it work using SPM. Anybody has a similar implementation, even if it is not ith GoogleMaps, about how to use swift or objective C code from a third party library in your kotlin implementation?
c
The best way is to use interface, then implement the interface in swift