Contents

DataDetector.Match.HighlightStyle

Values that suggest how to style a highlighted item.

Declaration

enum HighlightStyle

Discussion

When visually highlighting a match in some text, HighlightStyle suggests how to style a highlight.

For instance, in iOS, the system typically displays these matches with an underline using a dimmed version of the original text color. As a suggestion for the dimmed color, when the original color is white (saturation is less than 0.02 and brightness is above 0.98), apply an alpha value of 0.46 to the original color. Otherwise, use a 0.26 alpha value.

Treat DataDetector.Match.HighlightStyle.regular as the default.

Topics

Enumeration Cases

See Also

Values that describe highlighting and semantic details of matches