diff --git a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift index f55e85c8..09009a57 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift @@ -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) + "%")