Notifies you when on-screen keyboard changes its frame.
This project became a part of ScrollViewController.
It's obsolete and will no longer be maintained.
Minimum deployment target: iOS 10.0
You can integrate KeyboardFrameChangeListener
with your project using CocoaPods. Just add this line to your Podfile
:
pod 'KeyboardFrameChangeListener', '~> 1.0'
You can also use Carthage if you prefer by adding following line to your Cartfile
:
github "darrarski/KeyboardFrameChangeListener" ~> 1.0
Check out included DemoApp or ScrollViewController library which uses KeyboardFrameChangeListener
under the hood.
TL;DR
let listener: KeyboardFrameChangeListening
listener = KeyboardFrameChangeListener(notificationCenter: NotificationCenter.default)
listener.keyboardFrameWillChange = { change in
print("Keybaord frame will change: \(change)")
}
Requirements:
- Ruby with Bundler
- Xcode 10
To bootstrap the project run:
bundle install
bundle exec fastlane setup
Then open KeyboardFrameChangeListener.xcodeproj
in Xcode.
Use DemoApp
build scheme for building and runing demo app.
Use Tests
build scheme for runing tests.
To run tests from command line execute:
bundle exec fastlane test
To generate and open test coverage report in HTML format, run:
bundle exec fastlane coverage
MIT License - check out LICENSE file.