             animationDuration = 0.1
         }
         if isKeyBoardShowing {
-            isChanging = true
+            self.showingAnimationCount = 0
             for triggerView in self.triggerViews {
                 
                 //showing and docked

                        self.avoidingView!.transform = CGAffineTransform.identity
                    }
                }, completion: {(_ finished: Bool) -> Void in
                    if !isChanging {
                        self.updatedConstraints.removeAll()
                        self.updatedConstraintConstants.removeAll()
                    }

                            }
                            self.avoidingView!.superview!.setNeedsUpdateConstraints()
                        }
                        self.showingAnimationCount += 1
                        
                        UIView.animate(withDuration: TimeInterval(animationDuration), delay: TimeInterval(delay), options: UIViewAnimationOptions(rawValue: UInt(animationOptions)), animations: {() -> Void in
                            if self.avoidingViewUsesAutoLayout {
