From 822180ec9f8e9247d0843f0777e1bd333ddfcd7e Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Wed, 22 Jan 2020 16:09:36 -0500 Subject: [PATCH] code fixes --- MVMCoreUI/Atoms/Views/Checkbox.swift | 4 ++-- MVMCoreUI/Atoms/Views/CheckboxModel.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Checkbox.swift b/MVMCoreUI/Atoms/Views/Checkbox.swift index 07628416..af039435 100644 --- a/MVMCoreUI/Atoms/Views/Checkbox.swift +++ b/MVMCoreUI/Atoms/Views/Checkbox.swift @@ -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 { diff --git a/MVMCoreUI/Atoms/Views/CheckboxModel.swift b/MVMCoreUI/Atoms/Views/CheckboxModel.swift index 6bf9ae1a..9be83e91 100644 --- a/MVMCoreUI/Atoms/Views/CheckboxModel.swift +++ b/MVMCoreUI/Atoms/Views/CheckboxModel.swift @@ -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)