         self.isAdjustingInputContainer = true
         let value = max(bottomMargin, self.bottomLayoutGuide.length)
         self.inputContainerBottomConstraint.constant = value
-        self.bottomSpaceViewHeightConstraint.constant = value
         self.view.layoutIfNeeded()
         self.isAdjustingInputContainer = false
     }

        self.view.addConstraint(NSLayoutConstraint(item: self.bottomSpaceView, attribute: .top, relatedBy: .greaterThanOrEqual, toItem: self.inputContainer, attribute: .bottom, multiplier: 1, constant: 0))
        self.view.addConstraint(NSLayoutConstraint(item: self.view, attribute: .leading, relatedBy: .equal, toItem: self.bottomSpaceView, attribute: .leading, multiplier: 1, constant: 0))
        self.view.addConstraint(NSLayoutConstraint(item: self.view, attribute: .trailing, relatedBy: .equal, toItem: self.bottomSpaceView, attribute: .trailing, multiplier: 1, constant: 0))
        self.bottomSpaceViewHeightConstraint = NSLayoutConstraint(item: self.bottomSpaceView, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 0)
        self.view.addConstraint(self.bottomSpaceViewHeightConstraint)
    }

    private func setupInputContainerBottomConstraint() {


        if navigatedController.hidesBottomBarWhenPushed && (navigationController?.viewControllers.count ?? 0) > 1 && navigationController?.viewControllers.last == navigatedController {
            self.inputContainerBottomConstraint.constant = 0
        } else {
            self.inputContainerBottomConstraint.constant = self.bottomLayoutGuide.length
        }
    }

