From eb4f741f1a94758110ab2fac46972cc00190579c Mon Sep 17 00:00:00 2001 From: rajani kumari Gupta Date: Thu, 17 Oct 2024 17:47:24 +0530 Subject: [PATCH 1/2] =?UTF-8?q?CXTDT-626224=20MVA/iOS:=20Progress=20sectio?= =?UTF-8?q?n=20has=20visual=20defects=20that=20need=20to=20be=20corrected.?= =?UTF-8?q?=20issue=20fixed=20:-=20Number=20size=20should=20be:=20(font-si?= =?UTF-8?q?ze:=2032px=20/=20line-height:=2036px=20and=20=E2=80=9C%?= =?UTF-8?q?=E2=80=9D=20symbol=20size=20should=20be:=20font-size:=2011px=20?= =?UTF-8?q?/=20line-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) } From 5c280b792210f82c31c9435054e84ebbb813efc3 Mon Sep 17 00:00:00 2001 From: rajani kumari Gupta Date: Mon, 21 Oct 2024 14:28:34 +0530 Subject: [PATCH 2/2] Fix comment --- MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift index af5e49f9..8bef96fe 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CircularProgressBar.swift @@ -107,9 +107,9 @@ import UIKit // configure attributed string for progress percentage. let attributedString = NSMutableAttributedString(string: String(percent) + "%") // percent value - attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontForFeedCardTitle()], range: NSMakeRange(0, percentLen)) + attributedString.setAttributes([NSAttributedString.Key.font: Styler.Font.BoldTitleXLarge], range: NSMakeRange(0, percentLen)) // % symbol - attributedString.setAttributes([NSAttributedString.Key.font: MFStyler.fontRegularMicro()], range: NSMakeRange(percentLen, 1)) + attributedString.setAttributes([NSAttributedString.Key.font: Styler.Font.RegularMicro], range: NSMakeRange(percentLen, 1)) // show progress percentage in a text layer let width = viewWidth