Removed bgcolor property. Relying of default background property of class.
This commit is contained in:
parent
394321bdc4
commit
93bf4aa393
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user