An iOS library that shifts the interface when the keyboard covers UITextField or UITextView, with optional toolbar and resign features.
Overview
IQKeyboardManager addresses a common iOS issue where the software keyboard slides up and hides UITextField or UITextView content. After integration, enabling the manager adjusts layout automatically without per-screen manual scroll handling for standard UIKit controls.
Core behavior covers automatic keyboard distance for text fields and text views, including content inside UIScrollView, UITableView, and UICollectionView, with support for all interface orientations and configurable spacing. Optional subspecs add a previous/next/done toolbar, customized return-key handling, tap-to-dismiss, keyboard appearance tweaks, and UITextView placeholder support through a modular subspec layout.
The package targets recent iOS and Xcode versions and installs via CocoaPods, Carthage, or Swift Package Manager. Minimal setup is importing the library and enabling it from the application delegate; authors caution against bundling it inside third-party SDKs because of possible conflicts with apps that use their own keyboard handling.
Documentation here focuses on the Objective-C oriented codebase; Swift development lives in a related Swift package with parallel feature modules.
Key features
- Automatic keyboard overlap prevention
- Scroll, table, and collection support
- All interface orientations
- Configurable keyboard distance
- Optional navigation toolbar subspec
- Tap-to-resign keyboard module
- Modular subspec architecture
- Class-level enable and disable
Use cases
- Forms in UIKit iOS apps
- Chat or login screens with keyboards
- Table-based data entry
- Apps avoiding custom scroll subclasses
- Optional keyboard toolbar navigation