<commit_before># KeyboardWrapper
[![Build Status](https://travis-ci.org/zummenix/KeyboardWrapper.svg?branch=master)](https://travis-ci.org/zummenix/KeyboardWrapper)
[![Cocoapod](https://img.shields.io/cocoapods/v/KeyboardWrapper.svg)](https://cocoapods.org/pods/KeyboardWrapper)

A safe wrapper for UIKeyboard notifications written in Swift.

<img src="https://raw.github.com/zummenix/KeyboardWrapper/master/demo.gif" alt="Demo" width="372" height="662"/>

## Usage

- Import module
```Swift
import KeyboardWrapper
```

- Create `KeyboardWrapper` instance
```Swift
keyboardWrapper = KeyboardWrapper(delegate: self)
```

- Implement `KeyboardWrapperDelegate`
```Swift
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 3.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](CHANGELOG.md).

## Installation

### CocoaPods

KeyboardWrapper is available through [CocoaPods](http://cocoapods.org). To install<commit_msg>Minor fix in readme<commit_after># KeyboardWrapper
[![Build Status](https://travis-ci.org/zummenix/KeyboardWrapper.svg?branch=master)](https://travis-ci.org/zummenix/KeyboardWrapper)
[![Cocoapod](https://img.shields.io/cocoapods/v/KeyboardWrapper.svg)](https://cocoapods.org/pods/KeyboardWrapper)

A safe wrapper for UIKeyboard notifications written in Swift.

<img src="https://raw.github.com/zummenix/KeyboardWrapper/master/demo.gif" alt="Demo" width="372" height="662"/>

## Usage

- Import module
```Swift
import KeyboardWrapper
```

- Create `KeyboardWrapper` instance
```Swift
keyboardWrapper = KeyboardWrapper(delegate: self)
```

- Implement `KeyboardWrapperDelegate`
```Swift
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](CHANGELOG.md).

## Installation

### CocoaPods

KeyboardWrapper is available through [CocoaPods](http://cocoapods.org). To install
{'fraction_non_alphanumeric': 0.13532763532763534, 'fraction_numerical': 0.012108262108262107, 'mean_word_length': 4.201851851851852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '546679', 'n_tokens_mistral': 922, 'n_tokens_neox': 885, 'n_words': 196}