MessageInputBar icon indicating copy to clipboard operation
MessageInputBar copied to clipboard

Keyboard handlers within message kit

Open LincolnDickerson opened this issue 5 years ago • 2 comments

I have a chat view embedded with in my app hooked up to firebase. Works great. Thank you.

The issue I am having is the client wants the input for the chat to be about mid screen.

I have hidden the input bar accessory because there seems to be no way to embed it in the mid screen view with the chat. It that is possible let me know.

Currently when the keyboard appears for my text field it covers the text field.

Is there anyway to turn off the keyboard handlers in MessageKit. I have my own and the are working it just the ones in MessageKit are taking precedence.

The attached is a mock of the issue. Actual app under NDA... but the its the same issue

Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-04 at 06 18 25 Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-04 at 06 18 34

LincolnDickerson avatar Mar 04 '20 11:03 LincolnDickerson

Hey @LincolnDickerson it is simple to hide keyboard

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    if self.messageInputBar.inputTextView.becomeFirstResponder(){
        self.messageInputBar.inputTextView.resignFirstResponder()
    }
}

devang-lakhani25 avatar Mar 05 '21 04:03 devang-lakhani25

if you want hide keyboardHandler then self.messageInputBar.inputTextView.isHidden = true

devang-lakhani25 avatar Mar 05 '21 05:03 devang-lakhani25