update json func
This commit is contained in:
parent
1b06d7007b
commit
fe9131f3c6
@ -34,10 +34,8 @@ import UIKit
|
|||||||
}
|
}
|
||||||
|
|
||||||
override open func setWithJSON(_ json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
override open func setWithJSON(_ json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||||
super.setWithJSON(json, delegateObject: delegateObject, additionalData: additionalData)
|
guard let json = json, let model = try? Self.decodeJSONToModel(json: json, type: CircleProgressModel.self) else { return }
|
||||||
guard let graphModel = graphModel else { return }
|
setWithModel(model, delegateObject, additionalData)
|
||||||
createGraphCircle(graphModel)
|
|
||||||
rotationAnimation(graphModel)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class func getAngle(_ piValue: Double) -> Double {
|
class func getAngle(_ piValue: Double) -> Double {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user