Class

CLKComplicationTemplateGraphicCornerTextImage

A template for displaying an image and text in the clock face’s corner.

Declaration

@interface CLKComplicationTemplateGraphicCornerTextImage : CLKComplicationTemplate

Overview

This template belongs to the CLKComplicationFamilyGraphicCorner 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 corner text image template

Diagram showing the layout of text and an 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.

Apple Watch Size

Width

Height

40 mm

40 pixels

40 pixels

44 mm

44 pixels

44 pixels

This template supports full-color images. The image provider automatically masks the image to a circle.

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

imageProvider

The image to display.

textProvider

The text to display in the complication.

Relationships

See Also

Corner

CLKComplicationTemplateGraphicCornerCircularImage

A template for displaying an image in the clock face’s corner.

CLKComplicationTemplateGraphicCornerGaugeImage

A template for displaying an image and a gauge in the clock face’s corner.

CLKComplicationTemplateGraphicCornerGaugeText

A template for displaying text and a gauge in the clock face’s corner.

CLKComplicationTemplateGraphicCornerStackText

A template for displaying stacked text in the clock face’s corner.