---
title: MKSelectionAccessory
framework: mapkit
role: symbol
role_heading: Class
path: mapkit/mkselectionaccessory
---

# MKSelectionAccessory

The type of accessory to display for a selected annotation.

## Declaration

```swift
class MKSelectionAccessory
```

## Mentioned in

Identifying unique locations with Place IDs

## Overview

Overview Implement mapView(_:selectionAccessoryFor:) in your map view delegate to specify a selection accessory for annotation content.

## Topics

### Creating a selection accessory

- [mapItemDetail(_:)](mapkit/mkselectionaccessory/mapitemdetail(_:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Place information

- [MKMapItemDetailViewControllerDelegate](mapkit/mkmapitemdetailviewcontrollerdelegate.md)
- [MKMapItemDetailViewController](mapkit/mkmapitemdetailviewcontroller.md)
- [MKSelectionAccessory.MapItemDetailPresentationStyle](mapkit/mkselectionaccessory/mapitemdetailpresentationstyle.md)
- [MKSelectionAccessory.MapItemDetailPresentationStyle.CalloutStyle](mapkit/mkselectionaccessory/mapitemdetailpresentationstyle/calloutstyle.md)
