Latest 1.0.6
License MIT
Platforms ios 8.0

AutoKeyboard for iOS written in Swift

Automatic Keyboard handling with ease. It is fully automatic keyboard handling. Like in android no need to resize views when keyboard appears. It updates constraints which are bounded with bottomLayoutGuide or safeAreaLayoutGuide. Like bottomLayoutGuide or safeAreaLayoutGuide moves UP and DOWN with keyboard. Just need to register and unResgister thats it.


alt tag


  • safeAreaLayoutGuide suppord added.
  • UITabBarController support added.
  • UIViewController extension, no need to extend classes.
  • Device rotation supported.
  • Multiple UIViewController support.
  • Extremely easy integration.
  • Automatic bottom constraints changes with keyboard
  • Resizing with animation.
  • No need to write extra code.
  • Just registerAutoKeyboard and unRegisterAutoKeyboard.
  • Callback support on keyboard willShow, didShow, willHide, didHide, willChangeFrame, didChangeFrame.
  • Example for keeping scroll position of scrollView

Runtime Requirements

  • iOS8.0 or later
  • Xcode 8.0 – Swift 3.0 or later


Basic Usage

Alt text

  • Add constrainsts to bottomLayoutGuide or safeAreaLayoutGuide and they will update when keyboard appears.
  • And Register your specific ViewController, you should also unregister.
    override func viewWillAppear(_ animated: Bool) {

override func viewWillDisappear(_ animated: Bool) {

### Advanced Usage
registerAutoKeyboard { (result) in
print("keyboard status (result.status)")

switch result.status {
case .willShow:
// ...
case .didShow:
// ...
case .willHide:
// ...
case .didHide:
// ...



To integrate AutoKeyboard into your Xcode project using CocoaPods, specify it in your Podfile and run pod install.

platform :ios, '8.0'
pod 'AutoKeyboard'                 // for swift 4
pod 'AutoKeyboard', '~> 1.0.3'     // for swift 3

And import AutoKeyboard


Coming soon


Contributions are always welcome!


This project is licensed under the MIT License – see the file for details


Latest podspec

    "name": "AutoKeyboard",
    "version": "1.0.6",
    "summary": "Automatic Keyboard handling with ease",
    "description": "Automatic bottom constraints changes with extreamly easy integration.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Chandan Karmakar": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    "source": {
        "git": "",
        "tag": "1.0.6"
    "source_files": [
    "exclude_files": "Classes/Exclude"

Pin It on Pinterest

Share This