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 {