added comment as per Scott feedback

This commit is contained in:
Khan, Arshad 2019-12-19 19:21:49 +05:30
parent aff4b75368
commit eec15fc65e

View File

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