Closed dhaneshgosai closed 1 year ago
Please check the attached screenshot for more insights on the issue:
@dhaneshgosai Hello, this is Nikolay from QuickBlox support.
Please let me know if the below code is helpful:
NSLayoutConstraint.activate([NSLayoutConstraint(item: inputToolbar, attribute: .bottom, relatedBy: .equal, toItem: view, attribute: .bottom, multiplier: 1.0, constant: 0.0)])
If the issue persists, please provide the following points:
Heyy Nikolay,
Thanks for the response to my issue.
Actually, I tried the above-suggested code on my app but still facing the same issue of extra blank space at bottom of my chat screen.
Answering your few questions:
TabbarController
it's creating an issue Please check the below point to reproduce it.When we use TabBar Controller and Push ChatViewController in Tabbar and hide Tabbar or ChatViewController
at that time it's showing a blank space at the bottom and does not spread the collection view and toolbar item on the whole screen.
When I debug it required full view height is 844px (for iPhone11-13) but it always takes 626px only.
View Size Log: <UIView: 0x7fe5acc7fa00; frame = (0 91; 390 626); layer = <CALayer: 0x600000e4e2c0>>
Strange it should take the full screen and should not leave extra space at the bottom of the ChatVC. This issue is not occurring if I present ChatViewController
only on Push on Tabbar creating a problem.
Here I am attaching a small video of the issue which I am facing.
https://user-images.githubusercontent.com/1092509/178105157-add55b72-d92f-4953-b5d5-1f103d5df408.mov
Let me know if you need any more details on this.
Hoping quick response on this as I am stuck only on this issue and cant release my chat feature on AppStore for users.
Thanks.
New Issue Checklist
Environment details
Did this work before? No Its not working at all
Expected behavior It should take the full height of the screen.
Actual behavior Getting extra space at bottom in Chat screen
Steps to reproduce the behavior With TabBar controller its getting extra space at the bottom