This repository was archived by the owner on Mar 10, 2022. It is now read-only.
File tree 4 files changed +7
-6
lines changed
KeyboardHelperTests/Tests
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 {
26
26
func keyboardWillDisappear( _ info: KeyboardAppearanceInfo )
27
27
}
28
28
29
+ /// Hack to make protocol methods optional
30
+ public extension KeyboardHelperDelegate {
31
+ func keyboardWillAppear( _ info: KeyboardAppearanceInfo ) { }
32
+ func keyboardWillDisappear( _ info: KeyboardAppearanceInfo ) { }
33
+ }
29
34
30
35
/// Useful helper to keep track of keyboard changes.
31
36
public class KeyboardHelper {
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ class HideSpyDelegate : KeyboardHelperDelegate {
43
43
kai = info
44
44
expectation. fulfill ( )
45
45
}
46
-
47
- func keyboardWillAppear( _ info: KeyboardAppearanceInfo ) {
48
-
49
- }
50
46
}
51
47
52
48
class KeyboardHelperTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments