Remove wrong type check

This commit is contained in:
Panayot Cankov
2016-12-27 15:27:21 +02:00
parent fd4780b939
commit d00be55def

View File

@ -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);
}
} else {
nativeView.textColor = value.ios;
}