From d00be55defbfebaa9a70d49dd4bb19a8f04709d0 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Tue, 27 Dec 2016 15:27:21 +0200 Subject: [PATCH] Remove wrong type check --- tns-core-modules/ui/text-base/text-base.ios.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tns-core-modules/ui/text-base/text-base.ios.ts b/tns-core-modules/ui/text-base/text-base.ios.ts index fbba9e48a..addb3790e 100644 --- a/tns-core-modules/ui/text-base/text-base.ios.ts +++ b/tns-core-modules/ui/text-base/text-base.ios.ts @@ -70,9 +70,7 @@ export class TextBase extends TextBaseCommon { console.log("Setting native color: " + value); let nativeView = this.nativeView; if (nativeView instanceof UIButton) { - if (value instanceof UIColor) { - nativeView.setTitleColorForState(value.ios, UIControlState.Normal); - } + nativeView.setTitleColorForState(value.ios, UIControlState.Normal); } else { nativeView.textColor = value.ios; }