Removed bgcolor property. Relying of default background property of class.

This commit is contained in:
Christiano, Kevin 2019-03-20 10:20:43 -04:00
parent 394321bdc4
commit 93bf4aa393

View File

@ -15,7 +15,6 @@ import MVMCore
// MARK: - Properties // MARK: - Properties
//------------------------------------------------------ //------------------------------------------------------
@objc public var bgColor: UIColor?
@objc public var dashColor: UIColor? @objc public var dashColor: UIColor?
//------------------------------------------------------ //------------------------------------------------------
@ -55,7 +54,7 @@ import MVMCore
dashLayer.path = path.cgPath dashLayer.path = path.cgPath
dashLayer.strokeColor = dashColor?.cgColor ?? UIColor.mfLighterGray().cgColor dashLayer.strokeColor = dashColor?.cgColor ?? UIColor.mfLighterGray().cgColor
dashLayer.fillColor = UIColor.clear.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 isHidden = isHiddenValue
} }
if let bgColorHex = jsonDictionary["bgColor"] as? String {
bgColor = UIColor.mfGet(forHex: bgColorHex)
}
if let dashColorHex = jsonDictionary["dashColor"] as? String { if let dashColorHex = jsonDictionary["dashColor"] as? String {
dashColor = UIColor.mfGet(forHex: dashColorHex) dashColor = UIColor.mfGet(forHex: dashColorHex)
} }