Class

CLKComplicationTemplateGraphicRectangularTextGauge

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

Declaration

class CLKComplicationTemplateGraphicRectangularTextGauge : CLKComplicationTemplate

Overview

This template belongs to the CLKComplicationFamily.graphicRectangular family. Figure 1 shows the layout of the image and where the template might appear on the clock face.

Figure 1

Layout of the graphic rectangular text gauge template

Diagram showing the layout of a header image, header text, body text, and a gauge.

Table 1 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

48 pixels

48 pixels

44 mm

54 pixels

54 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 Manage Assets.

Topics

Setting the Complication Data

var headerTextProvider: CLKTextProvider

The header text to display in the complication.

var body1TextProvider: CLKTextProvider

The main body text to display in the complication.

var gaugeProvider: CLKGaugeProvider

The gauge to display in the complication.

Relationships

Conforms To

See Also

Rectangular

class CLKComplicationTemplateGraphicRectangularStandardBody

A template for displaying a large rectangle containing text.

class CLKComplicationTemplateGraphicRectangularLargeImage

A template for displaying a large rectangle containing header text and an image.