Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard handlers within message kit #31

Open
LincolnDickerson opened this issue Mar 4, 2020 · 2 comments
Open

Keyboard handlers within message kit #31

LincolnDickerson opened this issue Mar 4, 2020 · 2 comments

Comments

@LincolnDickerson
Copy link

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

@devang-lakhani25
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants