Resolved Issue #754: The backgroundColor of a Label is not animatable in iOS.

This commit is contained in:
Rossen Hristov
2015-11-25 11:46:34 +02:00
parent df9f9978c2
commit b702840cbf
8 changed files with 159 additions and 53 deletions

View File

@@ -16,6 +16,12 @@ export function checkNativeBorderColor(v: view.View): boolean {
}
export function checkNativeBackgroundColor(v: view.View): boolean {
if (v.ios instanceof UILabel) {
var cgColor1 = (<UILabel>v.ios).layer.backgroundColor;
var cgColor2 = (<UIColor>v.backgroundColor.ios).CGColor;
return v.backgroundColor && CGColorEqualToColor(cgColor1, cgColor2);
}
return v.backgroundColor && (<UIView>v.ios).backgroundColor.isEqual(v.backgroundColor.ios);
}