Fix the showing issue when percent is 100%.

This commit is contained in:
Xi Zhang 2024-07-17 10:23:50 -04:00
parent a845f70b55
commit 3b5b03a368

View File

@ -102,7 +102,7 @@ import UIKit
private func showProgressPercentage() {
let percent = graphModel?.percent ?? 0
let percentLen = percent > 9 ? 2 : 1
let percentLen = String(percent).count
// configure attributed string for progress percentage.
let attributedString = NSMutableAttributedString(string: String(percent) + "%")