---
title: subtitleHighlightRanges
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mklocalsearchcompletion/subtitlehighlightranges
---

# subtitleHighlightRanges

The ranges of characters to highlight in the subtitle string.

## Declaration

```swift
var subtitleHighlightRanges: [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 subtitle string. Use this property to identify the ranges of characters in the subtitle 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)
- [titleHighlightRanges](mapkit/mklocalsearchcompletion/titlehighlightranges.md)
