Estoy creando una UIViewController con un mapa de MapKit, y necesito copiar el diseño de unos pins hechos en android, como puedo cambiar el font del titulo y subtitulo de las MKAnnotationView para ponerlos igual que en android
Este es mi codigo:
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
guard annotation is MKPointAnnotation else { return nil }
let identifier = "Annotation"
var annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier)
if annotationView == nil {
annotationView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: identifier)
annotationView!.image = UIImage(named: "")
annotationView!.canShowCallout = true
} else {
annotationView!.annotation = annotation
annotationView!.canShowCallout = true
}
return annotationView
}