Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kofktu/kuikeyboard
Keyboard Handler in iOS
https://github.com/kofktu/kuikeyboard
ios keyboard swift
Last synced: 2 months ago
JSON representation
Keyboard Handler in iOS
- Host: GitHub
- URL: https://github.com/kofktu/kuikeyboard
- Owner: Kofktu
- License: mit
- Created: 2017-03-08T07:23:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T09:01:34.000Z (over 3 years ago)
- Last Synced: 2024-10-13T14:45:26.109Z (3 months ago)
- Topics: ios, keyboard, swift
- Language: Swift
- Size: 9.63 MB
- Stars: 65
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KUIKeyboard
![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)
[![CocoaPods](http://img.shields.io/cocoapods/v/KUIKeyboard.svg?style=flat)](http://cocoapods.org/?q=name%3AKUIKeyboard%20author%3AKofktu)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)Keyboard Handler in iOS,
It also perfectly works with UIScrollViewKeyboardDismissMode.interactive.![alt tag](Screenshot/Example.gif)
## Requirements
- iOS 8.0+
- Xcode 11.0
- Swift 5.0 (>= [1.7.0](https://github.com/Kofktu/KUIKeyboard/tree/1.7.0))
- Swift 4.2 (>= [1.6.0](https://github.com/Kofktu/KUIKeyboard/tree/1.6.0))
- Swift 4.0 (>= [1.5.0](https://github.com/Kofktu/KUIKeyboard/tree/1.5.0))
- Swift 3.0 ([1.0.0](https://github.com/Kofktu/KUIKeyboard/tree/1.0.0))## Installation
#### CocoaPods
KUIKeyboard is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "KUIKeyboard"
```## Usage
#### KUIKeyboard
```Swift
import KUIKeyboardvar keyboard = KUIKeyboard()
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
keyboard.addObservers()
}override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
keyboard.removeObservers()
}```
#### KUIKeyboardDelegate
```swift
keyboard.delegate = self...
func keyboard(_ keyboard: KUIKeyboard, changed visibleHeight: CGFloat) {
// Customize
}
```#### Closure
```swift
keyboard.onChangedKeyboardHeight = { (visibleHeight) in
// Customize
}
```## References
- RxKeyboard (https://github.com/RxSwiftCommunity/RxKeyboard)## Authors
Taeun Kim (kofktu),
## License
KUIKeyboard is available under the ```MIT``` license. See the ```LICENSE``` file for more info.