From 93d0f3d072526b1d6ace718d7ced0c2816e2c3cb Mon Sep 17 00:00:00 2001 From: Jason Zhekov Date: Wed, 14 Sep 2016 11:38:44 +0300 Subject: [PATCH] Fix Xcode 7 build - CAAnimationDelegate is not available there --- tns-core-modules/ui/animation/animation.ios.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tns-core-modules/ui/animation/animation.ios.ts b/tns-core-modules/ui/animation/animation.ios.ts index 301227cd7..7af8165fd 100644 --- a/tns-core-modules/ui/animation/animation.ios.ts +++ b/tns-core-modules/ui/animation/animation.ios.ts @@ -45,7 +45,8 @@ class AnimationDelegateImpl extends NSObject implements CAAnimationDelegate { public nextAnimation: Function; - static ObjCProtocols = [CAAnimationDelegate]; + // The CAAnimationDelegate protocol has been introduced in the iOS 10 SDK + static ObjCProtocols = global.CAAnimationDelegate ? [global.CAAnimationDelegate] : []; private _finishedCallback: Function; private _propertyAnimation: PropertyAnimationInfo;