Closed kjantzer closed 7 years ago
This is on purpose.
A normal popup bar is translucent, and so, it goes above the content so that it may be seen under. This should also be the behavior of the tab bar (and navigation bar), unless you specified differently. I don't think I support (or want to support) edgesForExtendedLayout
and extendedLayoutIncludesOpaqueBars
, where you specify that your view should shrink.
Instead, you should either set the bottom insets, in case of a scroll view, or use constraints to the bottom layout guide.
Do I need to apply the constraints on each of the tabbar view controllers?
tabBar.viewControllers = [libraryVC, storeVC, settingsVC]
Each view controller has a bottom layout guide. If you set constraints against that, everything should look correctly.
Would you be able to point me in the right direction?
You can look at the example projects to see. In the music demo, there is a scroll view. In the others, there is a constraint against the bottom layout guide.
I'm having issues with the view controllers in a tabbarcontroller being covered by the "now playing bar". I tried looking at #131 but haven't been able to apply that to my problem.
My pseudo code layout is:
My tabbar view controllers all get clipped by the popup bar:
What am I missing?