This repository was archived by the owner on Mar 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
KeyboardHelperTests/Tests Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- github "nodes-ios/KeyboardHelper" "swift-3.0"
1+ github "nodes-ios/KeyboardHelper"
Original file line number Diff line number Diff line change 1- github "nodes-ios/KeyboardHelper" "58d7c2bf19f7bc93d733290f06ae0eedf03f18a5 "
1+ github "nodes-ios/KeyboardHelper" "1.1.0 "
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ public protocol KeyboardHelperDelegate: class {
2626 func keyboardWillDisappear( _ info: KeyboardAppearanceInfo )
2727}
2828
29+ /// Hack to make protocol methods optional
30+ public extension KeyboardHelperDelegate {
31+ func keyboardWillAppear( _ info: KeyboardAppearanceInfo ) { }
32+ func keyboardWillDisappear( _ info: KeyboardAppearanceInfo ) { }
33+ }
2934
3035/// Useful helper to keep track of keyboard changes.
3136public class KeyboardHelper {
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ class HideSpyDelegate : KeyboardHelperDelegate {
4343 kai = info
4444 expectation. fulfill ( )
4545 }
46-
47- func keyboardWillAppear( _ info: KeyboardAppearanceInfo ) {
48-
49- }
5046}
5147
5248class KeyboardHelperTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments