Class

CLKComplicationTemplateExtraLargeStackImage

A template for displaying a single image with a short line of text below it.

Declaration

@interface CLKComplicationTemplateExtraLargeStackImage : CLKComplicationTemplate

Overview

This template belongs to the CLKComplicationFamilyExtraLarge 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 an extra large stack image template

Diagram showing the layout of an image positioned above a short line of text.

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.

Table 1

Image dimensions

Apple Watch Size

Width

Height

38 mm

156 pixels maximum

(You may specify images with a smaller width.)

84 pixels

40 mm

174 pixels maximum

(You may specify images with a smaller width.)

90 pixels

42 mm

174 pixels maximum

(You may specify images with a smaller width.)

90 pixels

44 mm

192 pixels maximum

(You may specify images with a smaller width.)

102 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

highlightLine2

A Boolean value indicating which line should be drawn with a highlight.

line1ImageProvider

The image to display on the top line of the complication.

line2TextProvider

The text to display on the bottom line of the complication.

Relationships

See Also

Image Templates

CLKComplicationTemplateExtraLargeRingImage

A template for displaying an image encircled by a configurable progress ring.

CLKComplicationTemplateExtraLargeSimpleImage

A template for displaying an image.