     // Enables for the interactive keyboard dismissal.
     // Gets called in scrollViewDidScroll and keyboardDidChangeFrame methods.
     private func updateKeyboardConstraints() {
-        if keyboardHC == nil {
-            keyboardHC = self.view.constraints.first {
+        if keyboardHeightConstraint == nil {
+            keyboardHeightConstraint = self.view.constraints.first {
                 ($0.firstItem as? UIView) == self.view &&
                     ($0.secondItem as? SLKTextInputbar) == self.textInputbar
             }

        }

        // The conditional check should help prevent unnecessary re-draws.
        if let keyboardHC = keyboardHC, keyboardHC.constant != keyboardHeight {
            keyboardHC.constant = keyboardHeight
        }
    }

                oldTextInputbarBgIsTransparent = true
            }

            if let textInputbarHC = textInputbarBackgroundHeightConstraint, textInputbarHC.constant != view.safeAreaInsets.bottom {
                textInputbarHC.constant = view.safeAreaInsets.bottom
            }
        }
