mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Apply getter check to determine if API is exposed as property or as method for iOS backward compatibility
This commit is contained in:
@@ -6,6 +6,8 @@ import enums = require("ui/enums");
|
||||
import style = require("ui/styling/style");
|
||||
import dependencyObservable = require("ui/core/dependency-observable");
|
||||
|
||||
import * as utils from "utils/utils";
|
||||
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
let _transform = "_transform";
|
||||
@@ -239,7 +241,7 @@ export class Animation extends common.Animation implements definition.Animation
|
||||
};
|
||||
originalValue = nativeView.layer.backgroundColor;
|
||||
if (nativeView instanceof UILabel) {
|
||||
nativeView.setValueForKey(UIColor.clearColor(), "backgroundColor");
|
||||
nativeView.setValueForKey(utils.ios.getter(UIColor, UIColor.clearColor), "backgroundColor");
|
||||
}
|
||||
value = value.CGColor;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user