added comment as per Scott feedback
This commit is contained in:
parent
aff4b75368
commit
eec15fc65e
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user