DAKeyboardControl adds keyboard awareness and scrolling dismissal (ala iMessages app) to any view with only 1 line of code.
Other
1.58k
stars
214
forks
source link
Switching between UITextField/UITextView with different UITextAutocorrectionType (i.e. Suggestions bar) causes gap between keyboard and attached view #89
I discovered that when I change from one UITextField / UITextView to another that has a diferrent UITextAutocorrectionType, the keyboard frame size seems to be invalid causing the 'attached view' to have a gap and/or move under the keyboard.
Example:
Message bar UIView that is attached to the 'addKeyboardPanningWithFrameBasedActionHandler' has the default for UITextAutocorrectionType (i.e. enabled)
Another textview at top of view has 'UITextAutocorrectionType.No' (i.e. disabled)
Switching from the message bar to the other textview keeps the keyboard in place, but then hide the suggestions and does NOT move the message bar down to fill the now empty gap. Even dismissing the keyboard and trying to open it back up for the message bar causes this gap to remain.
I discovered that when I change from one UITextField / UITextView to another that has a diferrent UITextAutocorrectionType, the keyboard frame size seems to be invalid causing the 'attached view' to have a gap and/or move under the keyboard.
Example: Message bar UIView that is attached to the 'addKeyboardPanningWithFrameBasedActionHandler' has the default for UITextAutocorrectionType (i.e. enabled) Another textview at top of view has 'UITextAutocorrectionType.No' (i.e. disabled) Switching from the message bar to the other textview keeps the keyboard in place, but then hide the suggestions and does NOT move the message bar down to fill the now empty gap. Even dismissing the keyboard and trying to open it back up for the message bar causes this gap to remain.