Open Marcaux opened 7 years ago
Thanks for your PR that I could test.
The behavior does not match the initial expected behavior. If a field is already in view when entering edit mode, no scrolling should occur. With your implementation, as soon as you tap on a field, it immediately jumps right above the keyboard, which is annoying from a user point of view.
This is also not perfectly consistent, as this offset can be changed afterwards when the user scrolls:
Could you please recall me what your exact issue with -scrollRectToVisible:animated:
was?
Using scrollRectToVisible:animated: seems to cause some problems to adjust scrollview offset with the keyboard. Could this solution be suitable?