SelectedBackgroundColor set via css ios.

This commit is contained in:
Nedyalko Nikolov
2016-10-31 09:23:04 +02:00
parent 667f33b47e
commit 17572384e2

View File

@ -200,24 +200,14 @@ export class SegmentedBarStyler implements style.Styler {
if (!v.ios) { if (!v.ios) {
return; return;
} }
v.ios.tintColor = newValue;
ensureColor();
if (newValue instanceof color.Color) {
v.ios.tintColor = newValue.ios;
}
} }
private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) { private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) {
if (!v.ios) { if (!v.ios) {
return; return;
} }
v.ios.tintColor = nativeValue;
ensureColor();
if (nativeValue instanceof color.Color) {
v.ios.tintColor = nativeValue.ios;
}
} }
private static getSelectedBackgroundColorProperty(v: view.View): any { private static getSelectedBackgroundColorProperty(v: view.View): any {