Contents

monzo/ekkeyboardavoiding

## EKKeyboardAvoiding 2.1

EKKeyboardAvoiding 2.1

It's an universal solution for keyboard avoiding that automatically changes content inset of your UIScrollView classes. When keyboard appears you will be able to see all content of your scroll views.

How to install

Install using CocoaPods

<pre><code>pod 'EKKeyboardAvoiding'</code></pre>

Install using SPM

To integrate EKKeyboardAvoiding into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:

<pre><code>dependencies: [ .package(url: "https://github.com/monzo/EKKeyboardAvoiding.git", .upToNextMajor(from: "2.1.0")) ]</code></pre>

Usage

First import UIScrollView+EKKeyboardAvoiding category to your project <pre><code>#import "UIScrollView+EKKeyboardAvoiding.h"</code></pre>

To enable keyboard avoiding you have to set contentSize of your scroll view and enable keyboard avoiding using category method setKeyboardAvoidingEnabled: <pre><code>UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:[[self view] bounds]]; [scrollView setContentSize:[scrollView frame].size]; ... [scrollView setKeyboardAvoidingEnabled:YES]; </code></pre>

To disable keyboard avoiding provide NO to setKeyboardAvoidingEnabled: method

##Example [screenshot#1][screenshot#2]

##Notes Works on iPhone/iPad iOS 5.0+

[[Bitdeli Badge]](https://bitdeli.com/free "Bitdeli Badge")

Package Metadata

Repository: monzo/ekkeyboardavoiding

Default branch: master

README: README.md