<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ClockKit",
  "identifier" : "/documentation/ClockKit/CLKSimpleTextProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ClockKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLKSimpleTextProvider"
  },
  "title" : "CLKSimpleTextProvider"
}
-->

# CLKSimpleTextProvider

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

```
class CLKSimpleTextProvider
```

## 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`](/documentation/ClockKit/CLKSimpleTextProvider/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

[`init(text:)`](/documentation/ClockKit/CLKSimpleTextProvider/init(text:))

Creates and returns a text provider with the specified long form text.

[`initWithText:`](/documentation/ClockKit/CLKSimpleTextProvider/initWithText:)

Creates and returns a text provider with the specified long form text.

[`init(text:shortText:)`](/documentation/ClockKit/CLKSimpleTextProvider/init(text:shortText:))

Creates and returns a text provider with both long and short versions of the text.

[`initWithText:shortText:`](/documentation/ClockKit/CLKSimpleTextProvider/initWithText:shortText:)

Creates and returns a text provider with both long and short versions of the text.

[`init(text:shortText:accessibilityLabel:)`](/documentation/ClockKit/CLKSimpleTextProvider/init(text:shortText:accessibilityLabel:))

Creates and returns a text provider with the text strings and an accessible string.

[`initWithText:shortText:accessibilityLabel:`](/documentation/ClockKit/CLKSimpleTextProvider/initWithText:shortText:accessibilityLabel:)

Creates and returns a text provider with the text strings and an accessible string.

### Getting the Text

[`text`](/documentation/ClockKit/CLKSimpleTextProvider/text)

The long version of text that you want to display.

[`shortText`](/documentation/ClockKit/CLKSimpleTextProvider/shortText)

A shorter version of the text.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)