Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 !!**