Open HoLuong1609 opened 2 years ago
I have tried and encounter to a solution:
import MBCircularProgressBar
class DirectionCircularProgressBarView: MBCircularProgressBarView {
private var clockwiseDirection:Bool = true
func setClockwiseDirection(_value: Bool) {
clockwiseDirection = _value
if (!clockwiseDirection) {
let color = progressColor
progressColor = emptyLineColor
emptyLineColor = color
}
}
func setValue(value: CGFloat) {
if clockwiseDirection {
self.value = value
} else {
self.value = -value
}
}
}
And then you should call setValue(?) instead of call .value = ?
I want to set counter clockwise direction for MBCircularProgressBar. Is this possible with the library