It's been a while since I played with MKMapView. With that caveat
// Only one point on the map at a time in this example
var mapPoint: MKPointAnnotation?
mapView.setCenterCoordinate(center, animated: false)
removeMapPoint()
mapPoint = MKPointAnnotation()
if let point = mapPoint {
point.coordinate = center;
mapView.addAnnotation(point)
}
That's from something I was working on back in the Swift 1.1 days -- might not be correct today. Change the animated value to suit your needs. You may not want the call to `removeMapPoint` which in my case removed any previous annotation. That code is
func removeMapPoint() {
if mapPoint {
mapView.removeAnnotation(mapPoint)
mapPoint = nil
}
}