Skip to content

Commit bd86c91

Browse files
authored
Merge pull request #30 from vbmania/master
Ignore first willShowVisibleHeight event.
2 parents cd963aa + a686eb7 commit bd86c91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/RxKeyboard.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public class RxKeyboard: NSObject {
5858
}
5959
.filter { state in state.isShowing }
6060
.map { state in state.visibleHeight }
61+
.skip(1)
6162
self.isHidden = self.visibleHeight.map({ $0 == 0.0 }).distinctUntilChanged()
6263
super.init()
6364

0 commit comments

Comments
 (0)