Initializer

init(style:gaugeColor:fillFraction:)

Creates a solid-color gauge.

Declaration

convenience init(style: CLKGaugeProviderStyle, gaugeColor color: UIColor, fillFraction: Float)

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.