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
  • 647
  • 1
  • 15
  • 37

1 Answers1

0

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

Quver
  • 1,409
  • 14
  • 21