<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisOverlayViewDelegate/overlayView(_:highlightSelectedItemsDidChange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit32ImageAnalysisOverlayViewDelegateP07overlayF0_31highlightSelectedItemsDidChangeyAA0cdeF0C_SbtF"
  },
  "title" : "overlayView(_:highlightSelectedItemsDidChange:)"
}
-->

# overlayView(_:highlightSelectedItemsDidChange:)

Notifies your app when recognized items in the image appear highlighted as a result of a person clicking or tapping the Live Text button.

```
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, highlightSelectedItemsDidChange highlightSelectedItems: Bool)
```

## Parameters

`overlayView`

The overlay view for which the selected item highlights change.

`highlightSelectedItems`

A Boolean value that indicates whether highlights appear.

---

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)