---
title: selectedAnnotations
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkmapview/selectedannotations
---

# selectedAnnotations

The selected annotations.

## Declaration

```swift
var selectedAnnotations: [any MKAnnotation] { get set }
```

## Discussion

Discussion Assigning a new array to this property selects only the first annotation in the array.

## See Also

### Managing annotation selections

- [annotationVisibleRect](mapkit/mkmapview/annotationvisiblerect.md)
- [selectAnnotation(_:animated:)](mapkit/mkmapview/selectannotation(_:animated:).md)
- [deselectAnnotation(_:animated:)](mapkit/mkmapview/deselectannotation(_:animated:).md)
