Latest 4.1.0
Homepage https://github.com/zummenix/KeyboardWrapper
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Build Status
Cocoapod

A safe wrapper for UIKeyboard notifications written in Swift.

Demo

Usage

  • Import module

    import KeyboardWrapper
  • Create KeyboardWrapper instance

    keyboardWrapper = KeyboardWrapper(delegate: self)
  • Implement KeyboardWrapperDelegate

    extension ViewController: KeyboardWrapperDelegate {
    func keyboardWrapper(_ wrapper: KeyboardWrapper, didChangeKeyboardInfo info: KeyboardInfo) {
    
        if info.state == .willShow || info.state == .visible {
            bottomConstraint.constant = info.endFrame.size.height
        } else {
            bottomConstraint.constant = 0.0
        }
    
        view.layoutIfNeeded()
    }
    }

Requirements

  • iOS 8.0 or higher
  • Xcode 9.0 (swift 4.0) or higher

For older versions of xcode and swift please use 3.0.1 version of the lib.

Changes

Take a look at change log.

Installation

CocoaPods

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

pod 'KeyboardWrapper', '~> 4.1'

Manual

Just drop the KeyboardWrapper.swift file into your project. That’s it!

License

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

Latest podspec

{
    "name": "KeyboardWrapper",
    "version": "4.1.0",
    "summary": "A wrapper for UIKeyboard notifications.",
    "description": "A safe wrapper for UIKeyboard notifications written in Swift.",
    "homepage": "https://github.com/zummenix/KeyboardWrapper",
    "license": "MIT",
    "authors": {
        "Aleksey Kuznetsov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zummenix/KeyboardWrapper.git",
        "tag": "4.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This