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

307 Views Asked by At

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

1

There are 1 best solutions below

0
Muhammad Nayab On BEST ANSWER

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