Contents

init(headerImageProvider:headerTextProvider:body1TextProvider:)

Creates a new template that has a header row with an image and text, and a row of body text.

Declaration

init(headerImageProvider: CLKImageProvider?, headerTextProvider: CLKTextProvider, body1TextProvider: CLKTextProvider)

Parameters

  • headerImageProvider:

    An image provider for the header. The system renders the image as a tinted template image, a bitmap image where only the opacity of the image matters. For more information, see Providing Images For Different Appearances.

  • headerTextProvider:

    The text provider for the header. For multicolor faces, like the Utility face, the system uses the text provider’s tint color for the text. For other faces, the system ignores the provided tint color, and uses a system color instead.

  • body1TextProvider:

    The text provider for the row of body text. For multicolor faces, like the Utility face, the system uses the text provider’s tint color for the text. For other faces, the system ignores the provided tint color, and uses a system color instead.

See Also

Creating the Template