<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.4 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKLocalSearchCompletion/titleHighlightRanges",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKLocalSearchCompletion(py)titleHighlightRanges"
  },
  "title" : "titleHighlightRanges"
}
-->

# titleHighlightRanges

The ranges of characters to highlight in the title string.

```
var titleHighlightRanges: [NSValue] { get }
```

## Discussion

This property contains an array of <doc://com.apple.documentation/documentation/Foundation/NSValue> objects, each of which contains an <doc://com.apple.documentation/documentation/Foundation/NSRange-c.struct> type defining a range of characters in the [`title`](/documentation/MapKit/MKLocalSearchCompletion/title) string. Use this property to identify the ranges of characters in the title string that you want to highlight. Highlighting the matching text of a search completion is optional, but it’s a best practice for providing helpful information to the user.

---

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)