Set the default value of duration to 0 to disable the animation by default following confluence page.
This commit is contained in:
parent
7f32af62cc
commit
0f4a97b49c
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user