hemangshah / HHTabBarView

A lightweight customized tabbar view. 📌
MIT License
154 stars 20 forks source link

HHTabBarView by default overlaps inner view controllers #13

Closed gerchicov-bp closed 5 years ago

gerchicov-bp commented 5 years ago

For example create a view/view controller with table with a lot of items and try to scroll it to the bottom - the last cell is hidden by tab bar

hemangshah commented 5 years ago

Hi @gerchicov-bp I believe, this isn't an issue of HHTabBarView. It's because of your table's bottom constraint.

hemangshah commented 5 years ago

Hi @gerchicov-bp , I have updated the codebase for swift 4.2 and added a table in Locations tab (in Example) to show case that how to fix this overlap issue. FYR, I am also adding two screenshots here to let you know how to fix it by your self. If you still need help just comment here and I would be happy to help.

How to activate Safe Area Layout Guide for a view controller (Note: With latest Xcode and new project, this is by default).

1

Setting/Updating Constraints for the TableView as per the screenshot:

2

Why 49 for Align bottom to Safe area? because HHTabBarView's height is 49.