A drop-in universal solution for moving text fields out of the way of the keyboard in iOS.
TPKeyboardAvoiding is an iOS library that automatically moves text fields and text views out of the way of the keyboard during editing. It solves the common problem of keyboard obstruction in forms by providing drop-in subclasses for UIScrollView and UITableView, handling all keyboard notifications and animations internally.
iOS developers building apps with forms, text input, or any interface where keyboard interaction is required, especially those using UITableView or UIScrollView layouts.
Developers choose TPKeyboardAvoiding because it eliminates the need to write and maintain custom keyboard avoidance code for each view controller, offering a reliable, universal solution that works out-of-the-box with smooth animations and automatic Next button handling.
A drop-in universal solution for moving text fields out of the way of the keyboard in iOS
By simply subclassing TPKeyboardAvoidingTableView or TPKeyboardAvoidingScrollView, developers enable automatic keyboard avoidance without writing custom notification handling code, as described in the Usage section.
It works with both UITableView-based interfaces and manually placed views within a scroll view, making it versatile for various iOS app layouts, as highlighted in the Introduction.
Automatically hooks up 'Next' buttons on the keyboard to cycle through text fields, improving user experience in forms without additional delegate setup, mentioned in the Key Features.
Adjusts content insets instead of frames to avoid jerky animations and work around iOS bugs, ensuring a seamless user experience, as explained in the Notes section.
For UITableViewController classes without a xib, the README admits there is no easy way to make the UITableView a custom class, requiring workarounds or xib creation.
Written in Objective-C, it introduces an extra dependency and potential bridging complexities in modern Swift-only iOS projects, which might be a drawback for some teams.
As a drop-in solution, it offers less flexibility for developers who need to implement specific keyboard avoidance behaviors beyond the provided automatic adjustments.
With the library last updated in 2013, there may be concerns about compatibility with newer iOS versions and lack of recent bug fixes or feature updates.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.