code fixes

This commit is contained in:
Suresh, Kamlesh 2020-01-22 16:09:36 -05:00
parent 9e7df20877
commit 822180ec9f
2 changed files with 3 additions and 3 deletions

View File

@ -478,11 +478,11 @@ import MVMCore
}
if let borderColor = checkboxModel.borderColor {
layer.borderColor = borderColor.cgColor
self.borderColor = borderColor.uiColor
}
if let borderWidth = checkboxModel.borderWidth {
layer.borderWidth = borderWidth
self.borderWidth = borderWidth
}
if checkboxModel.isChecked {

View File

@ -71,7 +71,7 @@ import Foundation
try container.encodeIfPresent(required, forKey: .required)
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(unCheckedBackgroundColor, forKey: .unCheckedBackgroundColor)
try container.encodeIfPresent(checkedBackgroundColor, forKey: .checkedBackgroundColor)