You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue only happens when using Carthage, it works fine with Cocoapods.
The following snippet doesn't compile with the version 0.4.0, but it did work before. It says it cannot found clusterManager. I have noticed a difference in the framework built by Carthage, MKMapView+ClusterKit.h is in PrivateHeaders but for 0.3.5, it is in Headers.
import ClusterKit
import Mapbox
protocol Foo {
var selectedAnnotation: MKAnnotation { get }
}
extension MGLMapView: Foo {
var selectedAnnotation: MKAnnotation {
return clusterManager.selectedAnnotation
}
}
Thanks for your help. :)
The text was updated successfully, but these errors were encountered:
The MGLMapView+ClusterKit extension is not part of the ClusterKit.framework to respect the interface segregation principle.
If you want to use ClusterKit with Mapbox using Carthage I suggest to copy/past the MGLMapView+ClusterKit.{h,m} files to your project. I know this not ideal but I don't want to force the MapBox dependency.
MKMapView+ClusterKit.h is private for the same reason, the difference is that MapKit is always available in iOS. To use it, you need to explicitly import it:
Hello,
This issue only happens when using Carthage, it works fine with Cocoapods.
The following snippet doesn't compile with the version 0.4.0, but it did work before. It says it cannot found
clusterManager
. I have noticed a difference in the framework built by Carthage, MKMapView+ClusterKit.h is inPrivateHeaders
but for 0.3.5, it is inHeaders
.Thanks for your help. :)
The text was updated successfully, but these errors were encountered: