- Xcode 11+
- Swift 5
- iOS 9+
.package(url: "https://github.com/saeid/GDGauge.git", from: "2.0.0")
pod 'GDGauge'
import GDGauge
var gaugeView = GDGaugeView(frame: view.bounds)
gaugeView
.setupGuage(
startDegree: CGFloat,
endDegree: CGFloat,
sectionGap: CGFloat,
minValue: CGFloat,
maxValue: CGFloat
)
.setupContainer(
width: CGFloat,
color: UIColor,
handleColor: UIColor,
options: GaugeOptions,
indicatorsColor: UIColor,
indicatorsValuesColor: UIColor,
indicatorsFont: UIFont
)
.setupUnitTitle(
title: String,
font: UIFont
)
.buildGauge()
gaugeView.updateValueTo(CGFloat)
gaugeView.updateColors(
containerColor: UIColor,
indicatorsColor: UIColor
)
gaugeView.resetColors()
GDGauge is available under the MIT license. See the LICENSE.txt file for more info.