iOS13 keyboard issue when app goes to background state

Starting iOS13 I see a strange behaviour in the keyboard when app goes to background state and comes back to foreground state. It seems origin.y value is changed incorrectly. The issue does not occur if app does not go to the background state.



Here are the logs for origin.y value of the keyboard.

  • keyboard begin frames y:896.000000
  • keyboard end frames y:595.000000

app goes to background state and comes back to foreground state.

  • keyboard begin frames y:0.000000
  • keyboard end frames y:-301.000000



https://i.stack.imgur.com/38q6a.png