Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions KeyboardController/Classes/KeyboardController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,19 @@ public class KeyboardController: NSObject {
let center = self.notificationCenter
center.addObserver(self,
selector: #selector(onKeyboardDidHide),
name: Notification.Name.UIKeyboardDidHide,
name: UIResponder.keyboardDidHideNotification,
object: nil)
center.addObserver(self,
selector: #selector(onKeyboardDidShow),
name: Notification.Name.UIKeyboardDidShow,
name: UIResponder.keyboardDidShowNotification,
object: nil)
center.addObserver(self,
selector: #selector(onKeyboardWillHide),
name: Notification.Name.UIKeyboardWillHide,
name: UIResponder.keyboardWillHideNotification,
object: nil)
center.addObserver(self,
selector: #selector(onKeyboardWillShow),
name: Notification.Name.UIKeyboardWillShow,
name: UIResponder.keyboardWillShowNotification,
object: nil)
}

Expand Down Expand Up @@ -254,7 +254,7 @@ extension KeyboardController: KeyboardNotificationHandling {

- author: Michal Konturek
*/
public func onKeyboardDidHide() {
@objc public func onKeyboardDidHide() {
self.delegate?.onKeyboardDidHide()
}

Expand All @@ -263,7 +263,7 @@ extension KeyboardController: KeyboardNotificationHandling {

- author: Michal Konturek
*/
public func onKeyboardDidShow() {
@objc public func onKeyboardDidShow() {
self.delegate?.onKeyboardDidShow()
}

Expand All @@ -272,7 +272,7 @@ extension KeyboardController: KeyboardNotificationHandling {

- author: Michal Konturek
*/
public func onKeyboardWillHide() {
@objc public func onKeyboardWillHide() {
self.delegate?.onKeyboardWillHide()
}

Expand All @@ -281,7 +281,7 @@ extension KeyboardController: KeyboardNotificationHandling {

- author: Michal Konturek
*/
public func onKeyboardWillShow() {
@objc public func onKeyboardWillShow() {
self.delegate?.onKeyboardWillShow()
}
}