Skip to content

Commit a686eb7

Browse files
author
Andrew(유금상)
committed
Ignore first willShowVisibleHeight event.
1 parent cd963aa commit a686eb7

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)