 
             keyboardConstraint.isActive = true
             keyboardConstraint.constant = -(keyboardSize.height + buttonConnectBottomSpacing)
-            UIView.animate(withDuration: 1) {
+            UIView.animate(withDuration: 0.5) {
                 self.view.layoutIfNeeded()
             }
         }


    @objc func keyboardWillAppear(_ notification: Notification) {
        if let keyboardSize = ((notification as NSNotification).userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
            var viewRect = self.view.frame
            viewRect.size.height -= keyboardSize.height

            if let buttonConnect = buttonConnect {

        }

        let tapGesture = UITapGestureRecognizer(target: self, action: #selector(hideKeyboard))
        view.addGestureRecognizer(tapGesture)
    }

