Class

CLKComplicationTemplateUtilitarianSmallFlat

A template for displaying an image and text in a single line.

Declaration

class CLKComplicationTemplateUtilitarianSmallFlat : CLKComplicationTemplate

Overview

This template belongs to the CLKComplicationFamily.utilitarianSmall 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 utilitarian small flat template

Diagram showing the layout of a row containing an image and 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. 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

18 pixels minimum

42 pixels maximum

18 pixels

40 mm

20 pixels minimum

44 pixels maximum

20 pixels

42 mm

20 pixels minimum

44 pixels maximum

20 pixels

44 mm

22 pixels minimum

49 pixels maximum

22 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

Relationships

Conforms To

See Also

Utilitarian Small

class CLKComplicationTemplateUtilitarianSmallRingImage

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

class CLKComplicationTemplateUtilitarianSmallRingText

A template for displaying text encircled by a configurable progress ring.

class CLKComplicationTemplateUtilitarianSmallSquare

A template for displaying a single square image.