---
title: titleHighlightRanges
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mklocalsearchcompletion/titlehighlightranges
---

# titleHighlightRanges

The ranges of characters to highlight in the title string.

## Declaration

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

## Discussion

Discussion This property contains an array of NSValue objects, each of which contains an NSRange type defining a range of characters in the 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.

## See Also

### Getting the search completions

- [title](mapkit/mklocalsearchcompletion/title.md)
- [subtitle](mapkit/mklocalsearchcompletion/subtitle.md)
- [subtitleHighlightRanges](mapkit/mklocalsearchcompletion/subtitlehighlightranges.md)
