                 self.view.layoutIfNeeded()
             }
             animator.startAnimation()
-            animator.addCompletion { _ in
-                if isNext {
-                    self.count += 1
-                } else {
-                    self.count -= 1
-                }
-            }
         }
     }
 

    }

    @objc private func proceedTapped() {
        guard count < phraseViews.count - 1 else { return }
        transitionTo(isNext: true)
        if self.count == 0 {
            showBothButtons()
        }
    }

    @objc private func previousTapped() {
        guard count > 0 else { return }
        transitionTo(isNext: false)
        if self.count == 1 {
            showOneButton()
        }
    }

    private func transitionTo(isNext: Bool) {
        let viewToHide = phraseViews[count]
        let viewToShow = phraseViews[isNext ? count + 1 : count - 1]

        if #available(iOS 10.0, *) {
            let animator = UIViewPropertyAnimator.springAnimation {
                viewToHide.xConstraint?.constant = isNext ? -self.phraseOffscreenOffset : self.phraseOffscreenOffset

                previous.constraint(.bottom, toView: view, constant: -Constants.Padding.quad),
                previousWidth!
            ])
    }

    private func addButtonTargets() {
