Xlpagertabstrip: Gap between tab bar and child view controller.

Created on 20 Jul 2017  路  4Comments  路  Source: xmartlabs/XLPagerTabStrip

I'm using the last XLPagerTabStrip pod and xcode 8.3.3. I'm not sure if the bug comes from my code or XLPagerTabstrip code. I have a gap between tab bar and the view under the tab bar. I can fix it by changing constraints, but the real problem is when I click on tab items, it kind of shift the view up and fix the gap. However, if I swipe, it wouldn't shift it up.
simulator screen shot jul 20 2017 1 38 20 am

Most helpful comment

I unchecked Adjust Scroll View Insets because unchecking Under Top Bars makes the navigation bar look weird.

All 4 comments

Go to View Controller Attributes Insprector and Uncheck Under top bars, Also make sure the Tabs Overlap the ScrollView.

I unchecked Adjust Scroll View Insets because unchecking Under Top Bars makes the navigation bar look weird.

override public var scrollPercentage: CGFloat { containerView.contentOffset.y = 0.0 return super.scrollPercentage }

This worked for me on container viewcontroller.

https://github.com/xmartlabs/XLPagerTabStrip/issues/200

It's good to mention, that you should disable "Adjust Scroll View Insets" on StripViewController not on its embed viewControllers. That wasnt clear to me, so maybe it helps someone

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fenixsolorzano picture fenixsolorzano  路  4Comments

Emasoft picture Emasoft  路  5Comments

alexanderkhitev picture alexanderkhitev  路  4Comments

SwiftyGuerrero picture SwiftyGuerrero  路  6Comments

JorgeAGomez picture JorgeAGomez  路  4Comments