     var fromValueForRadius:     Float = 0.0
     var fromValueForAlpha:      Float = 0.45
     var keyTimeForHalfOpacity:  Float = 0.2
-    var animationDuration:      NSTimeInterval = 3.0
-    var pulseInterval:          NSTimeInterval = 0.0
+    var animationDuration:      TimeInterval = 3.0
+    var pulseInterval:          TimeInterval = 0.0
     var useTimingFunction:      Bool = true
     var animationGroup:         CAAnimationGroup = CAAnimationGroup()
     var repetitions:            Float = Float.infinity

    
    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
    }
    
}