Skip to content

OpenCraft/KeyboardInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyboardInfo

CI Status Version License Platform

Usage

All you need to is add the setup to AppDelegate

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    KeyboardInfo.shared.setup()
    return true
}

Then, can access it's singleton and get the provided informations

KeyboardInfo.shared.height
KeyboardInfo.shared.animationCurve
KeyboardInfo.shared.animationDuration

Informations are updated only when the keyboard appears

Example

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

Installation

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

pod 'KeyboardInfo'

Author

Luis Filipe Campani, luisfilipecampani@gmail.com

License

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

About

A swift library for providing information from the keyboard when it appears.

Resources

License

Stars

Watchers

Forks

Packages

No packages published