<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImageView/highlightedImage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImageView(py)highlightedImage"
  },
  "title" : "highlightedImage"
}
-->

# highlightedImage

The highlighted image displayed in the image view.

```
var highlightedImage: UIImage? { get set }
```

## Discussion

The image in this property is displayed when the image view’s [`isHighlighted`](/documentation/UIKit/UIImageView/isHighlighted) property is <doc://com.apple.documentation/documentation/Swift/true>. If the [`highlightedAnimationImages`](/documentation/UIKit/UIImageView/highlightedAnimationImages) property contains a valid set of images, those image are used instead.

This property is set to the image (if any) you specified at initialization time. If you did not use the [`init(image:highlightedImage:)`](/documentation/UIKit/UIImageView/init(image:highlightedImage:)) method to initialize your image view, the initial value of this property is `nil`.

## See Also

[`highlightedAnimationImages`](/documentation/UIKit/UIImageView/highlightedAnimationImages)

An array of [`UIImage`](/documentation/UIKit/UIImage) objects to use for an animation when the view is highlighted.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)