How to select cluster annotation in MapKit

Issue #182

1
2
3
4
5
6
7
8
9
func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
guard let coordinate = view.annotation?.coordinate else {
return
}

if (view.annotation is MKClusterAnnotation) {
zoomInDouble(coordinate: coordinate)
}
}

Comments