hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
512 stars 86 forks source link

Add Swift Package Manager Support #87

Closed maxep closed 3 years ago

maxep commented 3 years ago

Issue Link :link:

Fixes #77

Goals :soccer:

Add support of Swift Package Manager.

Implementation Details :construction:

Testing Details :mag:

Test suite is not yet available at swift test, tests will need to be re-rewritten in swift.

carbonimax commented 3 years ago

It's all good but mapView.clusterManager seems to be not exposed to swift.

Error

maxep commented 3 years ago

@carbonimax It's using a custom module.modulemap for SPM. You need to import the submodule:

import ClusterKit.MapKit
carbonimax commented 3 years ago

I missed it! It works

thothai94 commented 1 year ago

How can I import this ClusterKit package to use with Mapbox? "import ClusterKit.Mapbox" or "import ClusterKit" always cause error "Value of type 'MGLMapView' has no member 'clusterManager'"