 
     private func updateFirstResponderWithInputItem(inputItem: ChatInputItemProtocol) {
         let responder = self.chatInputBar.textView
-        responder.inputView = inputItem.inputView
+        let inputView = inputItem.inputView
+        self.setHeight(forInputView: inputView)
+        responder.inputView = inputView
         if responder.isFirstResponder() {
             responder.reloadInputViews()
         } else {

@objc public class BasicChatInputBarPresenter: NSObject, ChatInputBarPresenter {
    let chatInputBar: ChatInputBar
    let chatInputItems: [ChatInputItemProtocol]

    public init(chatInputBar: ChatInputBar, chatInputItems: [ChatInputItemProtocol], chatInputBarAppearance: ChatInputBarAppearance) {
        self.chatInputBar = chatInputBar
        self.chatInputItems = chatInputItems
        self.chatInputBar.setAppearance(chatInputBarAppearance)
        super.init()

        self.chatInputBar.presenter = self
        self.chatInputBar.inputItems = self.chatInputItems
    }

    private(set) var focusedItem: ChatInputItemProtocol? {

            }
        }
        return firstKeyboardInputItem
    }

    private func setHeight(forInputView inputView: UIView?) {
        guard let inputView = inputView else { return }

        var mask = inputView.autoresizingMask
        mask.remove(.FlexibleHeight)
        inputView.autoresizingMask = mask

        if let heightConstraint = inputView.constraints.filter({ $0.firstAttribute == .Height }).first {
            heightConstraint.constant = self.inputViewHeight
        } else {
            inputView.frame.size.height = self.inputViewHeight
        }
    }

    private var lastKnownKeyboardHeight: CGFloat?
    private let defaultKeyboardHeight: CGFloat = 216
    private var inputViewHeight: CGFloat {
        let accessoryViewHeight = self.chatInputBar.textView.inputAccessoryView?.bounds.height ?? 0
        if let lastKnownKeyboardHeight = self.lastKnownKeyboardHeight {
            return lastKnownKeyboardHeight - accessoryViewHeight
        } else {
            return self.defaultKeyboardHeight
        }
    }

    @objc
    private func keyboardDidChangeFrame(notification: NSNotification) {
        guard let value = notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue else { return }
        self.lastKnownKeyboardHeight = value.CGRectValue().height
    }
}

