hackiftekhar /IQKeyboardManager
Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.
★ 16,621⑂ 2,440👁 347⑃ 242● 1,912▤ 102
+1
Daily
16,621
stars
2,440
forks
347
watchers
242
prs
1,912
issues
102
releases
README
!Platform iOS IQKeyboardManager Objective-C version source code is moved to https://github.com/hackiftekhar/IQKeyboardManagerObjC Introduction While developing iOS apps, we often run into issues where the iPhone keyboard slides up and covers the UITextField/UITextView. IQKeyboardManager allows you to prevent this issue of keyboard sliding up and covering UITextField/UITextView without needing you to write any code or make any additional setup. To use IQKeyboardManager you simply need to add source files to your project. Key Features 1. One Line of Code - Just enable and it works 2. Works Automatically - No manual setup required 3. No More UIScrollView - Automatically handles scroll views 4. No More Subclasses - Works with standard UIKit components 5. No More Manual Work - Handles all edge cases automatically 6. Modular Architecture - Include only what you need via subspecs What's Included - ✅ Automatic keyboard avoidance for UITextField/UITextView - ✅ Support for UIScrollView, UITableView, UICollectionView - ✅ All interface orientations - ✅ Configurable keyboard distance - ✅ Class-level enable/disable control Optional Features (via Subspecs) - 📦 Toolbar with Previous/Next/Done buttons - 📦 Return key handling customization - 📦 Tap-to-resign keyboard - 📦 Keyboard appearance configuration - 📦 UITextView with placeholder supportv Subspecs Now IQKeyboardManagerSwift uses a modular architecture with subspecs. By default, all subspecs are included, but you can include only what you need: Available Subspecs - Core (always included): Basic keyboard distance management - Appearance: Keyboard appearance configuration - IQKeyboardReturnManager: Return key handling - IQKeyboardToolbarManager: Toolbar functionality (Previous/Next/Done buttons) - IQTextView: UITextView with placeholder support - Resign: Tap-to-resign keyboard functionality Including Specific Subspecs ruby Include toolbar example pod 'IQKeyboardManagerSwift/IQKeyboardToolbarManager' Screenshot GIF animation Video Tutorial video by @rebeloper (1135) @rebeloper demonstrated two videos on how to implement IQKeyboardManager at it's core: https://www.youtube.com/playlist?list=PL_csAAO9PQ8aTL87XnueOXi3RpWE2m_8v Warning - If you're planning to build SDK/library/framework and want to handle UITextField/UITextView with IQKeyboardManager then you're totally going the wrong way. I would never suggest to add IQKeyboardManager as dependency/adding/shipping with any third-party library. Instead of adding IQKeyboardManager you should implement your own solution to achieve same kind of results. IQKeyboardManager is totally designed for projects to help developers for their convenience, it's not designed for adding/dependency/shipping with any third-party library, because doing this could block adoption by other developers for their projects as well (who are not using IQKeyboardManager and have implemented their custom solution to handle UITextField/UITextView i
Top issues
#2110Views outside the scroll area are pushed up and overlaid by navigation8 comments · 2025-06-21#2185iOS 27: Continuous Keyboard Flickering When Editing TextFields in the Last Table View Cells5 comments · 2026-10-20#1999disabledToolbarClasses for swiftui view3 comments · 2023-11-20#2165Get Keyboard height incorrect2 comments · 2026-01-08#2184Xcode 27 Update1 comments · 2026-10-02#2182Unable to disable distance handling for UIHostingControllers1 comments · 2026-08-12#2180Root view does not fully move down when switching from a taller keyboard to a shorter keyboard1 comments · 2026-06-10#2178UI Optimization1 comments · 2026-04-30
Latest release
8.0.3 Dependency updates and CocoaPods fixes 8.0.3 2026-05-25Improvements - Removed obsolete iOS 13 availability checks throughout the codebase. - Updated all SPM and CocoaPods dependency versions. Bug fixes - Fixed several CocoaPods compilation and podspec integration issues.