This is what I simply have in my code:
RxKeyboard.instance.visibleHeight.drive(onNext: { [weak self] value in
// do sth with value
}).disposed(by: disposeBag)
but this is called twice with values: 291, 336. And because of this my view jumps. It happens just when I focus on UITextField. Keyboard is already on the screen, but it is called twice. Why? Is there a way to remove it? I thought it will be possible with:
.debounce(.milliseconds(100), scheduler: MainScheduler.instance)
but it will not work with RxKeyboard.
Recognized by Mobile Development Collective