A full-color image displayed by a complication.


class CLKFullColorImageProvider : NSObject


All graphic complications support full-color images; however, some watch faces display these images as tinted images. Tinted images are black and white images with a highlight color that matches the watch face. If you don’t provide a tinted image provider, ClockKit automatically desaturates the full-color image to create the tinted image.

The template also often masks these image to produce circular images or rounded rectangles.

For information about the image sizes and masks, see Apple Watch Human Interface Guidelines.


Creating an Image Provider

init(fullColorImage: UIImage)

Creates an image provider with the specified full-color image.

init(fullColorImage: UIImage, tintedImageProvider: CLKImageProvider?)

Creates an image provider that produces full-color and tinted images.

Getting the Image Data

var image: UIImage

The full-color image to display.

var tintedImageProvider: CLKImageProvider?

An image provider that produces alternative images for tinted graphic complications.

Setting the Accessibility Label

var accessibilityLabel: String?

A succinct label that identifies the purpose of the image.


Inherits From

See Also

Data Providers

class CLKDateTextProvider

A formatted string that conveys a date without any time information.

class CLKImageProvider

An image displayed by a complication.

class CLKRelativeDateTextProvider

A formatted string that conveys the difference in time between the current date and a date that you specify.

class CLKSimpleTextProvider

A single line of text to display in your complication interface.

class CLKTextProvider

The common behavior for displaying text-based data in a complication.

class CLKTimeIntervalTextProvider

A formatted time range.

class CLKTimeTextProvider

A formatted time value.

class CLKSimpleGaugeProvider

A gauge that shows a fractional value.

class CLKTimeIntervalGaugeProvider

A gauge that tracks time intervals.

class CLKGaugeProvider

An abstract superclass that provides all the common behaviors for the gauge providers.

let CLKSimpleGaugeProviderFillFractionEmpty: Float

A fill value indicating an empty gauge.

enum CLKGaugeProviderStyle

Visual styles available for gauges.