Swiftpack.co - Package - alphatroya/KeyboardManager

Keyboard Manager

Swift 5.0+ Carthage compatible Build Status codebeat badge codecov Documentation

Simple wrap up for UIKeyboardNotification events


The framework introduce a KeyboardManager class with eventClosure property what receive parsed UIKeyboardNotification user data values

let keyboardManager = KeyboardManager(notificationCenter: NotificationCenter.default)
keyboardManager.eventClosure = { event in
    if case let .willShow(data) = event {
        // process KeyboardManager.Data struct

There is also a helper method bindToKeyboardNotifications(scrollView: UIScrollView) which simplify inset adjustment after keyboard appear/disappear



To integrate KeyboardManager into your Xcode project using Carthage, specify it in your Cartfile:

github "alphatroya/KeyboardManager"

Run carthage update to build the framework and drag the built KeyboardManager.framework into your Xcode project.

Swift Package Manager (required Xcode 11)

  1. Select File > Swift Packages > Add Package Dependency. Enter https://github.com/alphatroya/KeyboardManager in the "Choose Package Repository" dialog.
  2. In the next page, specify the version resolving rule as "Up to Next Major" with "1.4.0" as its earliest version.
  3. After Xcode checking out the source and resolving the version, you can choose the "KeyboardManager" library and add it to your app target.


Alexey Korolev, alphatroya@gmail.com


Stars: 0
Help us keep the lights on


Used By

Total: 0


1.4.2 - Oct 3, 2019

1.4.1 - Sep 28, 2019

1.4.0 - Sep 28, 2019

1.4 - Sep 28, 2019

1.3 - Jul 12, 2019