Latest 1.0.0
Homepage https://github.com/OpenCraft/KeyboardInfo
License MIT
Platforms ios 8.0
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "KeyboardInfo",
    "version": "1.0.0",
    "summary": "A swift library that provides information of the keyboard when it appears.",
    "description": "A quick solution to discover the properties of iPhone's keyboard. With KeyboardInfo you have easy accessnto keyboard's height (includes height of accesssory view if its activated), animation curve and animation duration time.",
    "homepage": "https://github.com/OpenCraft/KeyboardInfo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Luis Filipe Campani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OpenCraft/KeyboardInfo.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KeyboardInfo/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This