You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interactive dismiss event is not continuous update keyboard height.
just one height Update, in start & end point.
i used storyboard & autolayout.
i need continuous visible Keyboard height. how to use ?
The text was updated successfully, but these errors were encountered:
thecsy
changed the title
not update visible height, just start & end Height update
interactive dismiss event is not continuous update keyboard height.
Jan 21, 2021
In my case, I had add a new UIWindow in my app then the panGestureRecognizer from RxKeyboard didn't added to the correct window.
Here is my solution by editing source code to make sure I am getting the keyWindow:
if let window =UIApplication.shared.windows.first(where:{(window)->Boolin window.isKeyWindow}){
window.addGestureRecognizer(self.panRecognizer)}else{UIApplication.rx.didFinishLaunching // when RxKeyboard is initialized before UIApplication.window is created
.subscribe(onNext:{ _ in
if let window =UIApplication.shared.windows.first(where:{(window)->Boolin window.isKeyWindow}){
window.addGestureRecognizer(self.panRecognizer)}}).disposed(by: disposeBag)}
If you don't want to modify the source code, call RxKeyboard.instance after setting a new window should solve the issue as well:
interactive dismiss event is not continuous update keyboard height.
just one height Update, in start & end point.
i used storyboard & autolayout.
i need continuous visible Keyboard height. how to use ?
The text was updated successfully, but these errors were encountered: