Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/priore/dpkeyboardmanager
Auto slide the view when keyboard appears
https://github.com/priore/dpkeyboardmanager
keyboard objective-c swift xcode
Last synced: about 3 hours ago
JSON representation
Auto slide the view when keyboard appears
- Host: GitHub
- URL: https://github.com/priore/dpkeyboardmanager
- Owner: priore
- License: mit
- Created: 2017-09-12T09:02:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T22:47:27.000Z (almost 3 years ago)
- Last Synced: 2024-11-18T03:39:57.331Z (1 day ago)
- Topics: keyboard, objective-c, swift, xcode
- Language: Swift
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# DPKeyboardManager
Auto slide the view when keyboard appears
**HOW TO USE :**
```swift
import UIKit
class DPBaseViewController: UIViewController {
let keyboardManager = DPKeyboardManager()
override func viewDidLoad() {
super.viewDidLoad()
keyboardManager.loadKeyboardEvents(self)
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
keyboardManager.enableKeybaordEvents()
}override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
keyboardManager.disableKeyboardEvents()
}
override var shouldAutomaticallyForwardAppearanceMethods: Bool {
return !keyboardManager.isEmbeddedViewController
}
}```
**that's all !!**