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 {