Hello! I’m presenting my chat list with tab bar controller in the bottom. When I open any chat and start typing some message the white space above the keyboard is showed. How can I hide it?
I’m also using IQKeyboardManager, but I disable this framework for chat class in AppDelegate.swift like the following, so I’m sure it’s not connected with 3rd-party lib
@darya.karneichuk I set up IQKeyboardManager on sample and it ran without any problem Can you give me environment information such as iOS version, sdk versions?
I have this same issue. Is there any other way to fix this? Does this means that we shouldn’t use SBUChannelViewController within a tab bar view controller?
This makes a big assumption that we must always use a UITabBarController rather than having a custom toolbar / tab bar of some sort to avoid. You can achieve the same look using view controller containment (child/parent) and have a very custom setup, but this breaks that.
I’ll be opening a support ticket, since it’s too rigid at the moment.
The source code in SBUBaseChannelViewController currently reads:
var tabBarHeight: CGFloat = 0.0
if self.tabBarController?.tabBar.isTranslucent == false {
tabBarHeight = tabBarController?.tabBar.frame.height ?? 0.0
}
self.messageInputViewBottomConstraint.constant = -(keyboardHeight-tabBarHeight)
Welcome to the Sendbird Community. Just a note, we do not accept external pull requests to any of our repos. The best option would be to open a support case with our team and allow us to work with Engineering to see what can be done.
channel view’s need a way to set a custom tab bar height, in the scenario that we don’t use a UITabBarController in our implementation but still have a custom tab bar to avoid
alternatively (maybe preferably), channel view’s need to respect the additionalSafeAreaInsets in the keyboard offset calculation, since that’s what I’m currently using to offset the message input view. It works well for the hidden keyboard case, but breaks once keyboard shows