Class

CLKComplicationTemplateModularLargeStandardBody

A template for displaying a header row and two lines of text.

Declaration

class CLKComplicationTemplateModularLargeStandardBody : CLKComplicationTemplate

Overview

This template belongs to the CLKComplicationFamily.modularLarge family. Figure 1 shows the layout of the data and where a template of this type might appear on the clock face.

Figure 1

Layout of a modular large standard body template

Diagram showing the layout of the header row, two lines of text, and an optional image.

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. The width of the image must be between the specified minimum and maximum (inclusive).

Table 1

Image dimensions

Apple Watch Size

Width

Height

38 mm

22 pixels minimum

64 pixels maximum

22 pixels

40 mm

24 pixels minimum

74 pixels maximum

24 pixels

42 mm

24 pixels minimum

74 pixels maximum

24 pixels

44 mm

28 pixels minimum

84 pixels maximum

28 pixels

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 headerImageProvider: CLKImageProvider?

An optional image to display in the header.

var headerTextProvider: CLKTextProvider

The text to display in the header line.

var body1TextProvider: CLKTextProvider

The top line of body text.

var body2TextProvider: CLKTextProvider?

An optional second line of body text.

Relationships

Conforms To

See Also

Body Templates

class CLKComplicationTemplateModularLargeTallBody

A template for displaying a header row and a tall row of body text.