         newView.layoutRight = NSLayoutConstraint.rightToRight(
             view:newView,
             toView:self)
-        
-        addConstraints([
-            newView.layoutTop,
-            newView.layoutBottom,
-            newView.layoutLeft,
-            newView.layoutRight])
         
         UIView.animate(
             withDuration:kAnimationDuration,

            toView:self,
            constant:-left)
        
        addConstraints([
            newView.layoutTop,
            newView.layoutBottom,
            newView.layoutLeft,
            newView.layoutRight])
        
        layoutIfNeeded()
        
        currentView.layoutRight.constant = left

        
        addSubview(viewBar)
        
        NSLayoutConstraint.equalsHorizontal(
            view:viewBar,
            toView:self)
        
        layoutBarTop = NSLayoutConstraint.topToTop(
            view:viewBar,
            toView:self)
        NSLayoutConstraint.height(
            view:viewBar,
            constant:kBarHeight)
    }
    
    //MARK: public
