https://github.com/levantaj/keyboardnotifier
KeyboardNotifier manages Keyboard's visibility
https://github.com/levantaj/keyboardnotifier
did hide ios keyboard notifications show swift will
Last synced: about 1 year ago
JSON representation
KeyboardNotifier manages Keyboard's visibility
- Host: GitHub
- URL: https://github.com/levantaj/keyboardnotifier
- Owner: levantAJ
- License: mit
- Created: 2019-06-08T08:39:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T04:31:32.000Z (over 5 years ago)
- Last Synced: 2025-03-05T13:19:41.215Z (about 1 year ago)
- Topics: did, hide, ios, keyboard, notifications, show, swift, will
- Language: Swift
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://cocoadocs.org/docsets/KeyboardNotifier/)
[](http://cocoadocs.org/docsets/KeyboardNotifier/)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
# ⌨️ KeyboardNotifier
*KeyboardNotifier* manages Keyboard's visibility

## Requirements
- iOS 9.0 or later
- Xcode 11.0 or later
## Install
### Installation with CocoaPods
```ruby
pod 'KeyboardNotifier', '1.3'
```
### Build Project
At this point your workspace should build without error. If you are having problem, post to the Issue and the
community can help you solve it.
## How to use:
```swift
import KeyboardNotifier
```
- To check keyboard will show:
```swift
Keyboard.current.willShow { info in
print(info.keyboardFrame, info.animationDuration)
}
```
- To check keyboard did show:
```swift
Keyboard.current.didShow { info in
print(info.keyboardFrame, info.animationDuration)
}
```
- To check keyboard will hide:
```swift
Keyboard.current.willHide { info in
print(info.keyboardFrame, info.animationDuration)
}
```
- To check keyboard did hide:
```swift
Keyboard.current.didHide { info in
print(info.keyboardFrame, info.animationDuration)
}
```
## Troubleshooting
If you run into an issue that `KeyboardNotifier` unable to found.
```ruby
[!] Unable to find a specification for `KeyboardNotifier`
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
```
Pls refer to here [https://stackoverflow.com/questions/25913733/unable-to-find-a-specification-in-cocoapods](https://stackoverflow.com/questions/25913733/unable-to-find-a-specification-in-cocoapods)
by adding `source 'https://github.com/CocoaPods/Specs.git'`
## Author
- [Tai Le](https://github.com/levantAJ)
## Communication
- If you **found a bug**, open an issue.
- If you **have a feature request**, open an issue.
- If you **want to contribute**, submit a pull request.
## Licenses
All source code is licensed under the [MIT License](https://raw.githubusercontent.com/levantAJ/KeyboardNotifier/master/LICENSE).