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:
commit
38ae12e91b
@ -65,7 +65,7 @@ import UIKit
|
|||||||
tracklayer.strokeColor = trackColor.cgColor
|
tracklayer.strokeColor = trackColor.cgColor
|
||||||
|
|
||||||
// show circular progress view with animation.
|
// 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.
|
// show progress percentage label.
|
||||||
if let drawText = model.drawText, drawText {
|
if let drawText = model.drawText, drawText {
|
||||||
|
|||||||
@ -18,7 +18,7 @@ public class CircularProgressBarModel: GraphSizeBase, MoleculeModelProtocol {
|
|||||||
public var percent: Int = 0
|
public var percent: Int = 0
|
||||||
public var diameter: CGFloat? = 64
|
public var diameter: CGFloat? = 64
|
||||||
public var lineWidth: CGFloat? = 4
|
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 color: Color? = Color(uiColor: UIColor.mfGet(forHex: "#007AB8"))
|
||||||
public var trackColor: Color? = Color(uiColor: .mvmCoolGray3)
|
public var trackColor: Color? = Color(uiColor: .mvmCoolGray3)
|
||||||
public var drawText: Bool? = true
|
public var drawText: Bool? = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user