From eb4f741f1a94758110ab2fac46972cc00190579c Mon Sep 17 00:00:00 2001 From: rajani kumari Gupta Date: Thu, 17 Oct 2024 17:47:24 +0530 Subject: [PATCH] =?UTF-8?q?CXTDT-626224=20MVA/iOS:=20Progress=20section=20?= =?UTF-8?q?has=20visual=20defects=20that=20need=20to=20be=20corrected.=20i?= =?UTF-8?q?ssue=20fixed=20:-=20Number=20size=20should=20be:=20(font-size:?= =?UTF-8?q?=2032px=20/=20line-height:=2036px=20and=20=E2=80=9C%=E2=80=9D?= =?UTF-8?q?=20symbol=20size=20should=20be:=20font-size:=2011px=20/=20line-?= =?UTF-8?q?height:=2016px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift index 835a1def..af5e49f9 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift @@ -107,15 +107,15 @@ import UIKit // configure attributed string for progress percentage. let attributedString = NSMutableAttributedString(string: String(percent) + "%") // percent value - attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontBoldTitleLarge()], range: NSMakeRange(0, percentLen)) + attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontForFeedCardTitle()], range: NSMakeRange(0, percentLen)) // % symbol - attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontBoldBodyLarge()], range: NSMakeRange(percentLen, 1)) + attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontRegularMicro()], range: NSMakeRange(percentLen, 1)) // show progress percentage in a text layer let width = viewWidth let height = width labelLayer.string = attributedString - labelLayer.frame = CGRectMake((width - CGFloat(percentLen * 20))/2, (height - 30)/2, 60, 30) + labelLayer.frame = CGRectMake((width - CGFloat(percentLen * 20))/2, (height - 40)/2, 80, 40) self.layer.addSublayer(labelLayer) }