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


    @objc func keyboardWillDisappear(_ notification: Notification) {
        keyboardConstraint.isActive = false
        UIView.animate(withDuration: 1) {
            self.view.layoutIfNeeded()
        }
    }

        }

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

