I'm attempting to programmatically update the subtitle within MKAnnotation
. The following lines of code produce a cannot assign subtitle in annotation
error:
let annotation: MKAnnotation = mapView.annotations[0] as! MKAnnotation
annotation.subtitle = nil
Could anyone help lead me in a direction where I can update the subtitle after the MKAnnotation is shown within the map?