         
         if setDelay { anim.beginTime = animDesc.delay }
         anim.duration = animDesc.duration
-        anim.fillMode = kCAFillModeForwards
+        anim.fillMode = .forwards
         anim.isRemovedOnCompletion = false
         anim.values = getValues(animDesc, viewProperties: viewProperties)
         

                            let animGroup = CAAnimationGroup()
                            animGroup.beginTime = totalDuration + animDesc.delay
                            animGroup.duration = animDesc.duration
                            animGroup.fillMode = kCAFillModeForwards
                            animGroup.animations = [CAAnimation]()
                            animGroup.isRemovedOnCompletion = false
                            

            chainedAnim.duration = totalDuration
            chainedAnim.repeatCount = repeatCount
            chainedAnim.autoreverses = reverses
            chainedAnim.fillMode = .forwards
            chainedAnim.isRemovedOnCompletion = false
            
            view.layer.add(chainedAnim, forKey: animKey)
