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

# image

The image the annotation view displays.

## Declaration

```swift
var image: UIImage? { get set }
```

```swift
var image: NSImage? { get set }
```

## Discussion

Discussion Assigning a new image to this property also changes the size of the view’s frame so that it matches the width and height of the new image. The position of the view’s frame doesn’t change.

## See Also

### Getting and setting attributes

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