IHKeyboardAvoiding alternatives and similar libraries
Based on the "Keyboard" category.
Alternatively, view IHKeyboardAvoiding alternatives based on common mentions on social networks and blogs.
IQKeyboardManager9.9 5.7 L1 IHKeyboardAvoiding VS IQKeyboardManagerCodeless 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.
KeyboardShortcuts⌨️ Add user-customizable global keyboard shortcuts to your macOS app in minutes
Typist7.1 0.0 L5 IHKeyboardAvoiding VS TypistSwift UIKit keyboard manager for iOS apps.
ISEmojiViewEmoji Keyboard for iOS
Ribbon4.2 0.0 IHKeyboardAvoiding VS Ribbon🎀 A simple cross-platform toolbar/custom input accessory view library for iOS & macOS.
Hodor KeyboardCustom keyboard for iOS 8 using Swift
Keynode1.9 0.0 IHKeyboardAvoiding VS KeynodeInteractive Keyboard Controller for Swift
KeyboardHideManagerCodeless manager to hide keyboard by tapping on views for iOS written in Swift
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of IHKeyboardAvoiding or a related project?
An elegant solution for keeping any UIView visible when the keyboard is being shown
IHKeyboardAvoiding will translate any UIView up when the keyboard is being shown, then return it when the keyboard is hidden.
avoidingView(UIView) with IHKeyboardAvoiding; when the keyboard is shown, if the
avoidingView's frame will be intersected by the keyboard, then it will move up just above the keyboard. When the keyboard is dismissed, the
avoidingView is returned to its original position.
What sets IHKeyboardAvoiding apart from other keyboard avoiding solutions is that it doesn't require placing your content in a UIScrollView. No scroll view is used. And it isn't restricted to keeping UITextFields visible, with IHKeyboardAvoiding any UIView can avoid the keyboard
If Autolayout is used then the constraints are animated, otherwise a CGAffine translation is done.
- iPhone keyboard
- iPad docked keyboard
- iPad undocked keyboard
- iPad split keyboard
- landscape & protrait
- 3rd party keyboards
- Auto Layout
- AutoResizingMask (Springs & Struts)
How to install
Add this to your CocoaPods Podfile.
How to use
To set the avoiding view
KeyboardAvoiding.avoidingView = self.avoidingView
Put it in
viewDidAppear(_ animated: Bool) depending on your usage
If you're unsure put it in
viewDidAppear(_ animated: Bool)
If you need to set the avoidingView, or its properites, dynamically consider putting it in
textViewShouldBeginEditing(_ textView: UITextView)
KeyboardAvoiding.setAvoidingView(self.avoidingView, withTriggerView: self.triggerView) Use this to set an avoidingView but have a different view that triggers the avoiding. If a triggerView's frame will be intersected by the keyboard, then the avoidingView will be moved so that the triggerView is above the keyboard
KeyboardAvoiding.buffer The avoidingView will move if the keyboard is within
buffer points of the triggerView's frame. Default buffer is 0
KeyboardAvoiding.paddingForCurrentAvoidingView The padding to put between the keyboard and triggerView. Default padding is 0
Enable tap to dismiss the keyboard by simply changing any UIView to be an instance of KeyboardDismissingView in you nib/storyboard
Buy now and get this free gift :)
A Codable extension to decode arrays and to catch & log all decoding failures https://github.com/IdleHandsApps/SafeDecoder
Button styles that are centralied and reusable, and hooked up to InterfaceBuilder https://github.com/IdleHandsApps/DesignableButton
A fully automatic status bar overlay for No Internet Connection messages https://github.com/IdleHandsApps/StatusBarOverlay
IHKeyboardAvoiding vs UIScrollView solutions - Fight, fight!
- They're quick n easy
- You dont have scrollviews littered throughout your app
- Having multiple scrollviews in your view heirarchy can cause problems
- When the keyboard hides, scrollviews dont always scroll back to their original position
- Scrollviews only scroll enough to keep the focused textfield visible
- IHKeyboardAvoiding provides control over which UIViews are visible when the keyboard appears
Similar keyboard avoiding solutions
https://github.com/michaeltyson/TPKeyboardAvoiding (UIScrollView based)
https://github.com/kirpichenko/EKKeyboardAvoiding (UIScrollView based)
https://github.com/robbdimitrov/RDVKeyboardAvoiding (UIScrollView based) https://github.com/hackiftekhar/IQKeyboardManager (looks interesting) https://github.com/danielamitay/DAKeyboardControl (looks interesting)
- Fraser Scott-Morrison ([email protected])
It'd be great to hear about any cool apps that are using IHKeyboardAvoiding
Distributed under the MIT License
*Note that all licence references and agreements mentioned in the IHKeyboardAvoiding README section above are relevant to that project's source code only.