Type Method


Creates a time interval gauge that fills as time passes.


+ (instancetype)gaugeProviderWithStyle:(CLKGaugeProviderStyle)style gaugeColors:(NSArray<UIColor *> *)gaugeColors gaugeColorLocations:(NSArray<NSNumber *> *)gaugeColorLocations startDate:(NSDate *)startDate endDate:(NSDate *)endDate;



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


The gauge’s colors. These colors are displayed as a gradient.


The location of each color along the gauge. Locations are values between 0.0 and 1.0. If nil, the colors are evenly spaced along the gauge.


The start time and date.


the end time and date. This value must be later than or equal to the start date.

Return Value

A newly instantiated time interval gauge provider.


The gauge shows the amount of time that has elapsed, based on the current time relative to the specified start and end dates. The gauge fills as it counts up from the start time to the end time.

If you provide both colors and locations, then the gaugeColors and gaugeColorLocations arrays must be the same length.

See Also

Creating a Time Interval Gauge

+ gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:startDate:startFillFraction:endDate:endFillFraction:

Creates a time interval gauge, letting you specify whether the gauge fills or empties as time passes.