         self.animationGroup = CAAnimationGroup()
         self.animationGroup.duration = self.animationDuration + self.pulseInterval
         self.animationGroup.repeatCount = self.repetitions
-        self.animationGroup.removedOnCompletion = false
+        self.animationGroup.isRemovedOnCompletion = false
         
         if self.useTimingFunction {
             let defaultCurve = CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault)

    
    func createScaleAnimation() -> CABasicAnimation {
        let scaleAnimation = CABasicAnimation(keyPath: "transform.scale.xy")
        scaleAnimation.fromValue = NSNumber(float: self.fromValueForRadius)
        scaleAnimation.toValue = NSNumber(float: 1.0)
        scaleAnimation.duration = self.animationDuration
        
        return scaleAnimation

        let opacityAnimation = CAKeyframeAnimation(keyPath: "opacity")
        opacityAnimation.duration = self.animationDuration
        opacityAnimation.values = [self.fromValueForAlpha, 0.8, 0]
        opacityAnimation.keyTimes = [0, self.keyTimeForHalfOpacity as NSNumber, 1]
        opacityAnimation.isRemovedOnCompletion = false
        
        return opacityAnimation
    }
    
}