ribl / FBAnnotationClusteringSwift

Swift translation of FB Annotation Clustering, which clusters pins on the map for iOS.
http://ribl.co/blog/2015/05/28/map-clustering-with-swift-how-we-implemented-it-into-the-ribl-ios-app/
MIT License
311 stars 109 forks source link

Updated for Xcode 8.0 beta 6 and Swift 3.0 #46

Closed ast3150 closed 8 years ago

ast3150 commented 8 years ago

Updated Syntax to build on Swift 3.0.

An issue I could not resolve was the removing of pins when zooming out. I tried rewriting it to use Swift Set but as MKAnnotation does not conform to Hashable or Equatable it does not seem possible as of now. Perhaps a custom type could be used that implements the protocols.

Additional testing and bugfixes are required so I suggest to merge this to a separate branch for now, until the issues are resolved.