---
title: annotation
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkannotationview/annotation
---

# annotation

The annotation object associated with the view.

## Declaration

```swift
var annotation: (any MKAnnotation)? { get set }
```

## Discussion

Discussion Don’t change the value of this property directly. This property contains a non-nil value only while the annotation view is visible on the map. If the map view queues this annotation view and is waiting to reuse it, the value is nil.

## See Also

### Getting and setting attributes

- [isEnabled](mapkit/mkannotationview/isenabled.md)
- [image](mapkit/mkannotationview/image.md)
- [isHighlighted](mapkit/mkannotationview/ishighlighted.md)
- [centerOffset](mapkit/mkannotationview/centeroffset.md)
- [calloutOffset](mapkit/mkannotationview/calloutoffset.md)
- [reuseIdentifier](mapkit/mkannotationview/reuseidentifier.md)
