From 61edfcc747751ab9bd8811dd214f7b437a0759b7 Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Wed, 22 Jan 2020 14:51:17 -0500 Subject: [PATCH] fixes --- MVMCoreUI/Atoms/Views/Checkbox.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Checkbox.swift b/MVMCoreUI/Atoms/Views/Checkbox.swift index 6b125e82..07628416 100644 --- a/MVMCoreUI/Atoms/Views/Checkbox.swift +++ b/MVMCoreUI/Atoms/Views/Checkbox.swift @@ -477,8 +477,8 @@ import MVMCore self.isRequired = isRequired } - if let borderColorHex = checkboxModel.borderColor { - layer.borderColor = borderColorHex.uiColor.cgColor + if let borderColor = checkboxModel.borderColor { + layer.borderColor = borderColor.cgColor } if let borderWidth = checkboxModel.borderWidth { @@ -495,12 +495,12 @@ import MVMCore checkColor = uiCheckColor } - if let unCheckedBackgroundColorHex = checkboxModel.unCheckedBackgroundColor { - unCheckedBackgroundColor = unCheckedBackgroundColorHex.uiColor + if let unCheckedBackgroundColor = checkboxModel.unCheckedBackgroundColor { + self.unCheckedBackgroundColor = unCheckedBackgroundColor.uiColor } - if let checkedBackgroundColorHex = checkboxModel.checkedBackgroundColor { - checkedBackgroundColor = checkedBackgroundColorHex.uiColor + if let checkedBackgroundColor = checkboxModel.checkedBackgroundColor { + self.checkedBackgroundColor = checkedBackgroundColor.uiColor } if let isAnimated = checkboxModel.isAnimated {