Changing to CGFloat, instead of Double as per feedback provided by Ryan.

Root Cause: Swift was treating it as Double, instead of Float.
This commit is contained in:
Khan, Arshad 2019-12-18 22:28:22 +05:30
parent 95c528b658
commit aff4b75368

View File

@ -54,7 +54,7 @@ import Foundation
if let thickness = json?.optionalCGFloatForKey("thickness") {
self.thickness = thickness
}
if let percentage = json?["percent"] as? Double {
if let percentage = json?["percent"] as? CGFloat {
progress = Float(percentage/100.0)
}
if let progressColor = json?.optionalStringForKey("progressColor") {