init(imageProvider:fillFraction:ringStyle:)
Creates a new template from the provided image, fill fraction, and ring style.
Declaration
init(imageProvider: CLKImageProvider, fillFraction: Float, ringStyle: CLKComplicationRingStyle)Parameters
- imageProvider:
The image provider for the center image. 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.
- fillFraction:
A value between
0.0and1.0that indicates how much of the ring fills. - ringStyle:
The ring’s style. For a complete list of styles, see Clkcomplicationringstyle.