From eec15fc65ecf75a3c877553233eb4d327a24f38b Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Thu, 19 Dec 2019 19:21:49 +0530 Subject: [PATCH] added comment as per Scott feedback --- MVMCoreUI/Atoms/Views/ProgressBar.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/Atoms/Views/ProgressBar.swift b/MVMCoreUI/Atoms/Views/ProgressBar.swift index 1f75b1d0..c73c77b4 100644 --- a/MVMCoreUI/Atoms/Views/ProgressBar.swift +++ b/MVMCoreUI/Atoms/Views/ProgressBar.swift @@ -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) }