         }
     }
 
-    fileprivate func animateWithKeyboard(keyboardState: KeyboardState) {
-        UIView.animate(withDuration: keyboardState.animationDuration, animations: {
-            let keyboardHeight = keyboardState.intersectionHeightForView(view: self)
-            self.bottomConstraint.update(offset: -keyboardHeight)
-            self.layoutIfNeeded()
-        })
-    }
-
     @objc private func didPressSearch() {
         delegate?.overlayView(self, didSearchForQuery: searchQuery)
     }


class OverlayView: UIView {
    weak var delegate: OverlayViewDelegate?
    fileprivate let settingsButton = UIButton()
    private let searchButton = InsetButton()
    private let searchBorder = UIView()
    private var bottomConstraint: Constraint!
    private var presented = false
    private var searchQuery = ""
    private let copyButton = InsetButton()

}

extension OverlayView: KeyboardHelperDelegate {
    func keyboardHelper(_ keyboardHelper: KeyboardHelper, keyboardWillShowWithState state: KeyboardState) {}
    func keyboardHelper(_ keyboardHelper: KeyboardHelper, keyboardWillHideWithState state: KeyboardState) {}
    func keyboardHelper(_ keyboardHelper: KeyboardHelper, keyboardDidShowWithState state: KeyboardState) {}
    func keyboardHelper(_ keyboardHelper: KeyboardHelper, keyboardDidHideWithState state: KeyboardState) {}
}
