delegate
The receiver’s delegate.
Declaration
@IBOutlet weak var delegate: (any MKMapViewDelegate)? { get set }Discussion
A map view sends messages to its delegate regarding the loading of map data and changes in the portion of the map it displays. The delegate also manages the annotation views that highlight points of interest on the map.
The delegate needs to implement the methods of the MKMapViewDelegate protocol.