Type Method

gaugeProviderWithStyle:gaugeColor:fillFraction:

Creates a solid-color gauge.

Declaration

+ (instancetype)gaugeProviderWithStyle:(CLKGaugeProviderStyle)style gaugeColor:(UIColor *)color fillFraction:(float)fillFraction;

Parameters

style

The style defining the gauge’s visual appearance. For a list of valid styles, see CLKGaugeProviderStyle.

color

The gauge’s color.

fillFraction

The value displayed by the gauge. Use a value between 0.0 and 1.0. For an empty gauge, use CLKSimpleGaugeProviderFillFractionEmpty.

Return Value

A newly instantiated solid-color gauge.

See Also

Creating a Simple Gauge Provider