addAnnotation(_:)
Adds the specified annotation to the map view.
Declaration
func addAnnotation(_ annotation: any MKAnnotation)Parameters
- annotation:
The annotation object to add to the receiver. This object must conform to the Mkannotation protocol. The map view retains the specified object.