Is it possible to import & reference dependenc...
# compose-ios
j
Is it possible to import & reference dependencies added via SPM in
shared/src/iOSMain/kotlin
? I would like to add the UIKit view but I’m the JetBrains documentation only shows an example importing from platform package such as
platform.MapKit.MKMapView
or
platform.UIKit.UITextField
. I found an example importing a third-party library using Cocoapods but I wasn’t sure if this is a requirement of Compose Multiplatform or just a preference of the examples developer.
a
Do you need to import SPM pachage or use UIView inside iosMain source set?
j
I would like to use a UIView inside of my iosMain source set.
a
Hmm.. It should work out of the box. Just get our sample project and then you can use it. There are some limitations, like methods from extensions cannot be visible sometimes, but still you can just use it.
j
I’ve created a new project and added the Google Maps SDK via SPM but I’m not able to add an GoogleMaps import in order to use
GSMMapView
like I can when using Cocoapods plugin.