Skip to content

Commit 5a3b01d

Browse files
committed
not send same event.
1 parent ba8028a commit 5a3b01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RxKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 })
61+
self.didChangeVisibility = self.visibleHeight.map({ $0 != 0.0 }).distinctUntilChanged()
6262
super.init()
6363

6464
// keyboard will change frame

0 commit comments

Comments
 (0)