nativescript-checkbox icon indicating copy to clipboard operation
nativescript-checkbox copied to clipboard

Changing the color of tick in ios

Open itsmerockingagain opened this issue 4 years ago • 1 comments

Can anyone help me on how we can change the tick color in ios?

itsmerockingagain avatar Dec 29 '20 07:12 itsmerockingagain

Here is full example of having it in white color, you can use it as example and adjust your needs

<iOS><CheckBox:CheckBox fillColor="white" tintColor="white" onCheckColor="red" onTintColor="white" onFillColor="white" color="white" col="0" marginLeft="7" marginTop="8" paddingBottom="5" row="0" horizontalAlignment="left" class="filter-label" checked="{{ yourObservable }}" text="My check Box" id="myCheckbox"/></iOS>

Wrapping it inside <iOS> allows u to enable it only on iOS and for Android you can use same principle, with example for same result but different config:

<Android><CheckBox:CheckBox fillColor="white" color="white" col="0" marginLeft="7" marginTop="5" row="0" horizontalAlignment="left" class="filter-label" checked="{{ yourObservable }}" text="My check Box" id="myCheckbox"/></Android>

All options for iOS are available here. It's tested on latest iOS and Xcode. https://cocoapods.org/pods/BEMCheckBox#customization

markosole avatar Jul 03 '21 11:07 markosole