---
title: "init(style:gaugeColor:fillFraction:)"
framework: clockkit
role: symbol
role_heading: Initializer
path: "clockkit/clksimplegaugeprovider/init(style:gaugecolor:fillfraction:)"
---

# init(style:gaugeColor:fillFraction:)

Creates a solid-color gauge.

## Declaration

```swift
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 doc://com.apple.clockkit/documentation/ClockKit/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 doc://com.apple.clockkit/documentation/ClockKit/CLKSimpleGaugeProviderFillFractionEmpty.

## Return Value

Return Value A newly instantiated solid-color gauge.

## See Also

### Creating a Simple Gauge Provider

- [init(style:gaugeColors:gaugeColorLocations:fillFraction:)](clockkit/clksimplegaugeprovider/init(style:gaugecolors:gaugecolorlocations:fillfraction:).md)
