From 93bf4aa393e3f2a0a045502747a57ba4870c2da5 Mon Sep 17 00:00:00 2001 From: "Christiano, Kevin" Date: Wed, 20 Mar 2019 10:20:43 -0400 Subject: [PATCH] Removed bgcolor property. Relying of default background property of class. --- MVMCoreUI/Atoms/Views/DashLine.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/DashLine.swift b/MVMCoreUI/Atoms/Views/DashLine.swift index 9f016049..9c0e89f2 100644 --- a/MVMCoreUI/Atoms/Views/DashLine.swift +++ b/MVMCoreUI/Atoms/Views/DashLine.swift @@ -15,7 +15,6 @@ import MVMCore // MARK: - Properties //------------------------------------------------------ - @objc public var bgColor: UIColor? @objc public var dashColor: UIColor? //------------------------------------------------------ @@ -55,7 +54,7 @@ import MVMCore dashLayer.path = path.cgPath dashLayer.strokeColor = dashColor?.cgColor ?? UIColor.mfLighterGray().cgColor dashLayer.fillColor = UIColor.clear.cgColor - dashLayer.backgroundColor = bgColor?.cgColor ?? UIColor.white.cgColor + dashLayer.backgroundColor = backgroundColor?.cgColor ?? UIColor.white.cgColor } //------------------------------------------------------ @@ -76,10 +75,6 @@ import MVMCore isHidden = isHiddenValue } - if let bgColorHex = jsonDictionary["bgColor"] as? String { - bgColor = UIColor.mfGet(forHex: bgColorHex) - } - if let dashColorHex = jsonDictionary["dashColor"] as? String { dashColor = UIColor.mfGet(forHex: dashColorHex) }