Instance Property

titleHighlightRanges

The ranges of characters to highlight in the title string.

Declaration

var titleHighlightRanges: [NSValue] { get }

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 should highlight. Highlighting the matching text of a search completion is optional, but does provide helpful information to the user and is recommended.

See Also

Getting the Search Completions

var title: String

The title string associated with the point-of-interest.

var subtitle: String

The subtitle (if any) associated with the point-of-interest.

var subtitleHighlightRanges: [NSValue]

The ranges of characters to highlight in the subtitle string.