From 17572384e29c8f19b4a4ce52d49872ed527b7b40 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Mon, 31 Oct 2016 09:23:04 +0200 Subject: [PATCH] SelectedBackgroundColor set via css ios. --- .../ui/segmented-bar/segmented-bar.ios.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts b/tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts index 8d1238447..8ce4ebad0 100644 --- a/tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts +++ b/tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts @@ -200,24 +200,14 @@ export class SegmentedBarStyler implements style.Styler { if (!v.ios) { return; } - - ensureColor(); - - if (newValue instanceof color.Color) { - v.ios.tintColor = newValue.ios; - } + v.ios.tintColor = newValue; } private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) { if (!v.ios) { return; } - - ensureColor(); - - if (nativeValue instanceof color.Color) { - v.ios.tintColor = nativeValue.ios; - } + v.ios.tintColor = nativeValue; } private static getSelectedBackgroundColorProperty(v: view.View): any {