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

# CLKComplicationTemplateGraphicRectangularTextGauge

A template for displaying a large rectangle containing text and a gauge.

```
class CLKComplicationTemplateGraphicRectangularTextGauge
```

## Overview

This template belongs to the [`CLKComplicationFamily.graphicRectangular`](/documentation/ClockKit/CLKComplicationFamily/graphicRectangular) family. [Figure 1](/documentation/clockkit/clkcomplicationtemplategraphicrectangulartextgauge#3030706) shows the layout of the image and where the template might appear on the clock face.

![Diagram showing the layout of a header image, header text, body text, and a gauge.](images/com.apple.clockkit/media-3030706@2x.png)

The following table lists the dimensions of the image you use in this template. All dimensions are in pixels. All images must be specified as @2x images for display on Apple Watch, so the point-based dimensions are half the listed size.

|Apple Watch Size|Width    |Height   |
|----------------|---------|---------|
|40 mm           |24 pixels|24 pixels|
|41 mm           |25 pixels|25 pixels|
|44 mm           |27 pixels|27 pixels|
|45 mm           |29 pixels|29 pixels|

This template supports full-color images.

Instead of providing multiple images with different resolutions, you can provide a single, scaleable PDF asset. For more information, see `Supporting Multiple Watch Sizes`.

## Topics

### Creating the Template

[`init(headerTextProvider:body1TextProvider:gaugeProvider:)`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/init(headerTextProvider:body1TextProvider:gaugeProvider:))

Creates a new template that has header text, body text, and a gauge.

[`init(headerImageProvider:headerTextProvider:body1TextProvider:gaugeProvider:)`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/init(headerImageProvider:headerTextProvider:body1TextProvider:gaugeProvider:))

Creates a new template that has a header row with an image and text, body text, and a gauge.

[`templateWithHeaderTextProvider:body1TextProvider:gaugeProvider:`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/templateWithHeaderTextProvider:body1TextProvider:gaugeProvider:)

Returns a new template that has header text, body text, and a gauge.

[`templateWithHeaderImageProvider:headerTextProvider:body1TextProvider:gaugeProvider:`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/templateWithHeaderImageProvider:headerTextProvider:body1TextProvider:gaugeProvider:)

Returns a new template that has a header row with an image and text, body text, and a gauge.

### Setting the Complication Data

[`headerTextProvider`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/headerTextProvider)

The header text to display in the complication.

[`headerImageProvider`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/headerImageProvider)

The header image to display.

[`body1TextProvider`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/body1TextProvider)

The main body text to display in the complication.

[`gaugeProvider`](/documentation/ClockKit/CLKComplicationTemplateGraphicRectangularTextGauge/gaugeProvider)

The gauge to display in the complication.



---

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)