                                 self.avoidingView!.transform = transform
                             }
                         }, completion: { _ in
-                            isChanging = false
+                            self.showingAnimationCount -= 1
                         })
                     }
                 }

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

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