---
title: "mapView(_:didDeselect:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapviewdelegate/mapview(_:diddeselect:)-yo7q"
---

# mapView(_:didDeselect:)

Tells the delegate when the user deselects one or more of its annotation views.

## Declaration

```swift
optional func mapView(_ mapView: MKMapView, didDeselect view: MKAnnotationView)
```

## Parameters

- `mapView`: The map view containing the annotation view.
- `view`: The deselected annotation view.

## Discussion

Discussion You can use this method to track changes in the selection state of annotation views.

## See Also

### Selecting annotations and annotations views

- [mapView(_:didSelect:)](mapkit/mkmapviewdelegate/mapview(_:didselect:)-41by3.md)
- [mapView(_:didDeselect:)](mapkit/mkmapviewdelegate/mapview(_:diddeselect:)-4ldss.md)
- [mapView(_:didSelect:)](mapkit/mkmapviewdelegate/mapview(_:didselect:)-9km43.md)
- [selectableMapFeatures](mapkit/mkmapview/selectablemapfeatures.md)
