Contents

CLKSimpleTextProvider

A single line of text to display in your complication interface.

Declaration

class CLKSimpleTextProvider

Mentioned in

Overview

Use a simple text provider to specify strings for your complications. The simple text object handles the formatting of that string in your complication, which may include tinting it to match the color of the clock face.

When creating a simple text provider, you can specify both a long version and a short version of your text. Providing both strings gives you more control over the text displayed by your complication. When the long string doesn’t fit in the available space, the text provider tries to display the value in the shortText property instead. If the shorter version is still too long, it displays a truncated version of the longer text.

Topics

Creating a Text Provider

Getting the Text

See Also

Text providers