Keyboard For UITextView Remains Visible After Dismissing It - Swift 5

129 Views Asked by At

I have a view with many input fields. All of them are UITextFields expect for the one at the very bottom, which is a UITextView.

For some reason when I tap the screen to call view.endEditing() to dismiss the keyboard from the UITextView, sometimes the keyboard will stay up, and I'll have to tap the screen a second time to get it to dismiss. This issue never happens on UITextFields though.

I also get this error message:

[Snapshotting] Snapshotting a view (0x7f95cf10ec70, UIInputSetHostView) that has not been rendered at least once requires afterScreenUpdates:YES.

Is there a way to prevent this?

0

There are 0 best solutions below