Latest 0.0.2
Homepage https://github.com/xtrinch/KeyboardLayoutHelper
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

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.

Requirements

Version 0.0.2 supports Swift 3 only. Please use version 0.0.1 if you need support for Swift 2.2.

Example

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

Usage

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.

Installation

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

pod "KeyboardLayoutHelper"

Author

Mojca Rojko, [email protected]

KeyboardLayoutConstraint class borrowed and made into a cocoapod from: https://github.com/MengTo/Spring/blob/master/Spring/KeyboardLayoutConstraint.swift

License

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

Latest podspec

{
    "name": "KeyboardLayoutHelper",
    "version": "0.0.2",
    "summary": "Keyboard layout constraint class to help adapt UIView to the appearing keyboard, so the textfields dont get lost underneath it.",
    "description": "Keyboard layout constraint class to help adapt UIView to the appearing keyboard, so the textfields dont get lost underneath it. Usage is very simple, just apply the KeyboardLayoutConstraint class to the bottom constraint of UIView or its subclass and the view will move up and down with the keyboard.",
    "homepage": "https://github.com/xtrinch/KeyboardLayoutHelper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mojca Rojko": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xTrinch/KeyboardLayoutHelper.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KeyboardLayoutHelper/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This