0

I want to know the keyboard size including autocorrection part.

if let keyboardSize = (notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
   // ...
}

keyboardSize variable is the keyboard size, but autocorrection part is not added to it.

I checked https://stackoverflow.com/a/30433821/4468859 but it did not work in swift.

Fattaneh Talebi
  • 727
  • 1
  • 16
  • 42

1 Answers1

0

Handling keyboard is very painful. You can use https://github.com/evgenyneu/UnderKeyboard

Quver
  • 1,408
  • 14
  • 21