diff --git a/tns-core-modules/ui/button/button.ios.ts b/tns-core-modules/ui/button/button.ios.ts index 26d9f8b75..361f3dc92 100644 --- a/tns-core-modules/ui/button/button.ios.ts +++ b/tns-core-modules/ui/button/button.ios.ts @@ -296,8 +296,9 @@ export class ButtonStyler implements style.Styler { } } - if (button.style.color && button.style.color.ios){ - dict.set(NSForegroundColorAttributeName, button.style.color.ios); + let buttonColor = button.style.color; + if (buttonColor){ + dict.set(NSForegroundColorAttributeName, buttonColor.ios); } if (dict.size > 0){