Merge branch 'feature/VZWYZDG-1810-UpdatedProgressUI' into 'develop'

Set the default value of duration to 0 to disable the animation by default...

Set the default value of animation duration to 0 to disable the animation by default following confluence page.

JIRA Ticket
https://onejira.verizon.com/browse/VZWYZDG-2236

Co-authored-by: Xi Zhang <xi.zhang@verizon.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1149
This commit is contained in:
Hedden, Kyle Matthew 2024-07-17 18:41:16 +00:00
commit 38ae12e91b
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ import UIKit
tracklayer.strokeColor = trackColor.cgColor
// show circular progress view with animation.
showProgressWithAnimation(duration: graphModel?.duration ?? 1.0, value: Float(graphModel?.percent ?? 0) / 100)
showProgressWithAnimation(duration: graphModel?.duration ?? 0, value: Float(graphModel?.percent ?? 0) / 100)
// show progress percentage label.
if let drawText = model.drawText, drawText {

View File

@ -18,7 +18,7 @@ public class CircularProgressBarModel: GraphSizeBase, MoleculeModelProtocol {
public var percent: Int = 0
public var diameter: CGFloat? = 64
public var lineWidth: CGFloat? = 4
public var duration : Double? = 1.0
public var duration : Double? = 0
public var color: Color? = Color(uiColor: UIColor.mfGet(forHex: "#007AB8"))
public var trackColor: Color? = Color(uiColor: .mvmCoolGray3)
public var drawText: Bool? = true