can't change indicator value formate
Ajacme opened this issue · comments
public init(valueIndicator: String = " GB",
rightToLeft: Bool = false,
showFloatingPoint: Bool = false,
decimalPlaces: Int = 2) {
self.valueIndicator = valueIndicator
self.rightToLeft = rightToLeft
self.showFloatingPoint = showFloatingPoint
self.decimalPlaces = decimalPlaces
}
Version
- Version = UICircularProgressRing (6.2.0)
Details
- Has the question been answered here before?
- I want to remove % sign from the value indicator but I can't.
- Please provide as much detail as possible below
- I tired with other text like GB or something then also showing default value(%) so please help me out.
Thanks
var formatValue = UICircularProgressRingFormatter() formatValue.valueIndicator = "" yourView.valueFormatter = formatValue
use it like this. I hope it helps.
As @nomimalik1769 pointed out, the formatted must be reassigned as it’s a struct. This will fix your issue.