We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3b01d commit f084bc6Copy full SHA for f084bc6
Sources/RxKeyboard.swift
@@ -32,7 +32,7 @@ public class RxKeyboard: NSObject {
32
33
/// An observable visibility of keyboard. Emits keyboard visibility
34
/// when changed keyboard show and hide.
35
- public let didChangeVisibility: Driver<Bool>
+ public let isHidden: Driver<Bool>
36
37
// MARK: Private
38
@@ -58,7 +58,7 @@ public class RxKeyboard: NSObject {
58
}
59
.filter { state in state.isShowing }
60
.map { state in state.visibleHeight }
61
- self.didChangeVisibility = self.visibleHeight.map({ $0 != 0.0 }).distinctUntilChanged()
+ self.isHidden = self.visibleHeight.map({ $0 == 0.0 }).distinctUntilChanged()
62
super.init()
63
64
// keyboard will change frame
0 commit comments