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.0and1.0. For an empty gauge, use Clksimplegaugeproviderfillfractionempty.
Return Value
A newly instantiated solid-color gauge.