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

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

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