From e26f1fbc043e51828a5530c914662c9bc8f9d51f Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Fri, 13 Jan 2017 16:00:02 +0200 Subject: [PATCH] ai fixed (#3488) --- .../ui/activity-indicator/activity-indicator.ios.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts b/tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts index b803fad17..c9df3199e 100644 --- a/tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts +++ b/tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts @@ -13,12 +13,16 @@ export class ActivityIndicator extends ActivityIndicatorBase { this.nativeView.hidesWhenStopped = true; } + get ios(): UIActivityIndicatorView { + return this.nativeView; + } + get [busyProperty.native](): boolean { - if (ios.MajorVersion > 9) { - return this.nativeView.animating; + if ((this.nativeView).isAnimating) { + return (this.nativeView).isAnimating(); } else { - return (this.nativeView).isAnimating(); + return this.nativeView.animating; } } set [busyProperty.native](value: boolean) {