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.