Skip to content

Commit f084bc6

Browse files
committed
fix property name.
1 parent 5a3b01d commit f084bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RxKeyboard.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class RxKeyboard: NSObject {
3232

3333
/// An observable visibility of keyboard. Emits keyboard visibility
3434
/// when changed keyboard show and hide.
35-
public let didChangeVisibility: Driver<Bool>
35+
public let isHidden: Driver<Bool>
3636

3737
// MARK: Private
3838

@@ -58,7 +58,7 @@ public class RxKeyboard: NSObject {
5858
}
5959
.filter { state in state.isShowing }
6060
.map { state in state.visibleHeight }
61-
self.didChangeVisibility = self.visibleHeight.map({ $0 != 0.0 }).distinctUntilChanged()
61+
self.isHidden = self.visibleHeight.map({ $0 == 0.0 }).distinctUntilChanged()
6262
super.init()
6363

6464
// keyboard will change frame

0 commit comments

Comments
 (0)