RKKeyboardManager

CI Status Cocoapods compatible Version Platform iOS Swift Version 4.1 License MIT

Usage

let scrollView = UIScrollView()

let keyboardManager = RKKeyboardManager()
// or let keyboardManager = RKKeyboardManager(scrollView: scrollView)

// keyboardManager.subscribe()
// keyboardManager.unsubscribe()

func setupKeyboardManager() {
    keyboardManager.setOnWillChangeFrameBlock { [weak self] keyboardFrame, keyboardEvent in
        guard let sself = self else { return }
        switch keyboardEvent {
        case .willShow, .justChange:
            // do ...
        case .willHide:
            // do ...
        }
    }
}

Requirements

Installation

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

pod 'RKKeyboardManager'

Author

DaskiOFF, waydeveloper@gmail.com

License

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

Dependencies

Последний раз проект собирался с версией Xcode указанной в файле .xcode-version (Подробнее)

Последний раз проект собирался с версией Swift указанной в файле .swift-version