Skip to content

How to present ViewControllers from ChatChannelVC without keyboard being dismissed? #1763

Closed Answered by adamrushy
virbedi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @virbedi

This is a good spot, and actually we're looking to integrate the camera feature right into the SDK soon. However, to get your issue resolved I have managed to reproduce and got some sample code for you.

So basically, you'll want to implement the UIImagePicker delegate and set the responder chain on completion:

    public func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
        dismiss(animated: true) {
            self.composerView.inputMessageView.textView.becomeFirstResponder()
        }
    }
RPReplay_Final1643632740.MP4

I hope this helps 👍🏼

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@virbedi
Comment options

Answer selected by adamrushy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants