iRohitGaur / RGDoneKeyboard

Adds a done button on your TextField and TextView, slides them up so that they don’t hide behind keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RGDoneKeyboard

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'RGDoneKeyboard'

Usage

Turn on the accessory in storyboard. For details, check these videos:

Import it in the ViewController you want it to work:

import RGDoneKeyboard

In your viewDidLoad function, call RGDoneKeyboard on self:

self.RGDoneKeyboard(dismissOnTap: true)

If you want to dismiss the keyboard when you tap on the view, you can set dismissOnTap as true.

Author

iRohitGaur, rohitgaur7@gmail.com

License

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

About

Adds a done button on your TextField and TextView, slides them up so that they don’t hide behind keyboard

License:MIT License


Languages

Language:Swift 80.4%Language:Ruby 19.6%