---
title: "init(textProvider:label:)"
framework: clockkit
role: symbol
role_heading: Initializer
path: "clockkit/clkcomplicationtemplategraphiccornertextview/init(textprovider:label:)"
---

# init(textProvider:label:)

Creates a template with a line of text and a SwiftUI view.

## Declaration

```swift
init(textProvider: CLKTextProvider, label: Label)
```

## Parameters

- `textProvider`: The text provider for the text. The template supports multicolored text from this text provider.
- `label`: The SwiftUI view displayed by the template.
