I am a beginner, and i can't understand one thing. In this example there exist Info button. As I understand there piece of code returns this button:
func mapView(_ mapView: MGLMapView, rightCalloutAccessoryViewFor annotation: MGLAnnotation) -> UIView? {
return UIButton(type: .detailDisclosure)
}
So the question is: how can I open another View (view name: extraInfo, viewcontroller's name: extraInfoController) from this button programmatically? Please, can u reply in detail, because as i already sad, I am beginner. :) (I am using Swift, not Obj-C)