code fixes
This commit is contained in:
parent
9e7df20877
commit
822180ec9f
@ -478,11 +478,11 @@ import MVMCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let borderColor = checkboxModel.borderColor {
|
if let borderColor = checkboxModel.borderColor {
|
||||||
layer.borderColor = borderColor.cgColor
|
self.borderColor = borderColor.uiColor
|
||||||
}
|
}
|
||||||
|
|
||||||
if let borderWidth = checkboxModel.borderWidth {
|
if let borderWidth = checkboxModel.borderWidth {
|
||||||
layer.borderWidth = borderWidth
|
self.borderWidth = borderWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
if checkboxModel.isChecked {
|
if checkboxModel.isChecked {
|
||||||
|
|||||||
@ -71,7 +71,7 @@ import Foundation
|
|||||||
try container.encodeIfPresent(required, forKey: .required)
|
try container.encodeIfPresent(required, forKey: .required)
|
||||||
try container.encodeIfPresent(borderColor, forKey: .borderColor)
|
try container.encodeIfPresent(borderColor, forKey: .borderColor)
|
||||||
try container.encodeIfPresent(borderColor, forKey: .borderColor)
|
try container.encodeIfPresent(borderColor, forKey: .borderColor)
|
||||||
try container.encodeIfPresent(isChecked, forKey: .isChecked)
|
try container.encode(isChecked, forKey: .isChecked)
|
||||||
try container.encodeIfPresent(checkColor, forKey: .checkColor)
|
try container.encodeIfPresent(checkColor, forKey: .checkColor)
|
||||||
try container.encodeIfPresent(unCheckedBackgroundColor, forKey: .unCheckedBackgroundColor)
|
try container.encodeIfPresent(unCheckedBackgroundColor, forKey: .unCheckedBackgroundColor)
|
||||||
try container.encodeIfPresent(checkedBackgroundColor, forKey: .checkedBackgroundColor)
|
try container.encodeIfPresent(checkedBackgroundColor, forKey: .checkedBackgroundColor)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user