KeyboardLayoutHelper 0.0.2

KeyboardLayoutHelper 0.0.2

LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by xtrinch.

  • By
  • Mojca Rojko


Provides a layout constraint class to help adapt UIView to the appearing keyboard, so the textfields dont get lost underneath it. Extremely simple usage as all you have to do is apply the provided KeyboardLayoutConstraint class in interface builder.


To run the example project, clone the repo, and run pod install from the Example directory first.

Screenshots of the example application with sample login and register pages:

Vertically centered views:

Moving content from under the keyboard in iOS / Swift

Scroll view:

Moving content from under the keyboard in iOS / Swift


To prevent views obscuring your keyboard, make an auto layout bottom constraint, give it a class of KeyboardLayoutConstraint in module KeyboardLayoutHelper and the class will do the work necessary to increase it to accomodate appearing and disappearing keyboard. See example project on examples how to use it.


KeyboardLayoutHelper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "KeyboardLayoutHelper"


Mojca Rojko, [email protected]


KeyboardLayoutHelper is available under the MIT license. See the LICENSE file for more info.