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
Hey 👋
Not sure if you still with this issue but I was able to solve that by adding the tab bar height when decreasing the keyboard height:
@objcprivatefunc keyboardWillChangeFrame(_ notification:Notification){
guard var height = notification.keyboardHeight else{return}
// When tab bar is presented we need to include the tab bar height when adjusting the keyboard height
letnavigationController=UIApplication.shared.keyWindow?.rootViewController as?UINavigationControllerlettabBarController= navigationController?.viewControllers.first as?UITabBarControllerlettabBarHeight= tabBarController?.tabBar.frame.height ??0
if #available(iOS 11.0,*), height >0{letsafeAreaBottom= owningView?.safeAreaInsets.bottom ??0
height -= safeAreaBottom + tabBarHeight
}
heightConstraint?.constant = height
animate(notification)Keyboard.shared.currentHeight = height
}
@bhavneet0812 Are you still experiencing the issue? I'm trying to reproduce the issue locally with no avail, I feel like it has been solved in the meantime :)
The text was updated successfully, but these errors were encountered: