Search code examples
iosswiftmaterial-designcosmicmind

CosmicMind/Material : How to change CheckButton Selected Colour in iOS


I am using CheckButton and I am not able to change its selected color for selected state. CheckBox with blue color


Solution

  • Got the solution

    checkBoxButton.setIconColor(Color.darkText.value, for: .selected)
    checkBoxButton.setIconColor(Color.darkText.value, for: .normal)
    checkBoxButton.checkmarkColor = UIColor.white
    checkBoxButton.backgroundColor = UIColor.white