Get Height Keyboard iOS Swift 4

I have a problem when trying to use IQKeyboardManager. When keyboard show up, the navbar sometimes will break the top and give some white space. So finally i turn off IQKeyboardManager and trying to implement keyboard show up by self. So the point is to get height keyboard and raise the textbox above keyboard. This is the example of I've done.


This is the code :


I hope it helps you all, if you have any question please feel free to ask :D

Popular posts from this blog

Fixing Keyboard Hide When Reload UITableview iOS swift 5

How to have ConstraintLayout inside ScrollView and ScrollView inside ConstraintLayout Android

Create Smooth Dropdown on iOS swift 5