---
title: "addAnnotation(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapview/addannotation(_:)"
---

# addAnnotation(_:)

Adds the specified annotation to the map view.

## Declaration

```swift
func addAnnotation(_ annotation: any MKAnnotation)
```

## Parameters

- `annotation`: The annotation object to add to the receiver. This object must conform to the doc://com.apple.mapkit/documentation/MapKit/MKAnnotation protocol. The map view retains the specified object.

## See Also

### Annotating the map

- [annotations](mapkit/mkmapview/annotations.md)
- [addAnnotations(_:)](mapkit/mkmapview/addannotations(_:).md)
- [removeAnnotation(_:)](mapkit/mkmapview/removeannotation(_:).md)
- [removeAnnotations(_:)](mapkit/mkmapview/removeannotations(_:).md)
- [annotations(in:)](mapkit/mkmapview/annotations(in:).md)
