How to get the height of inputAssistantItem in keyboard?

178 Views Asked by At

I want to get the height of the keyboard in iPad without the inputAssistantItem's height. I'm able to get the height of the keyboard with inputAssistantItem, but I couldn't find any way to get the height of inputAssistantItem.

Purpose: I'm having a custom keyboardInputView, and the height of that inputView should be exactly same as the default one. I'm using intrinsicContentSize of UIKeyboardInputView to set the height of custom inputView.

Thanks in advance.

1

There are 1 best solutions below

1
Karamjit Singh On

You can add the input view in UITextField its automatically set the height UIKeyboardInputView :

let textfield = UITextField()

textfield.inputView = yourCustomView