iosswiftuinavigationbarxlpagertabstrip

XLPagerTabStrip: add space between ButtonBarView and NavigationBar iOS


I'm using XLPagerTabStrip in a swift 3 application.

This is my storyboard:

enter image description here enter image description here

I added CollectionView to VC in Interface Builder, and set its class to "ButtonBarView"

I added top space contrains to ButtonBarView to have space between it and navigationBar but it keep always 0 space


Solution

  • You need make your buttonBarView linked to your ButtonBarPagerTabStripViewController buttonBarView

    enter image description here

    enter image description here

    Hope this helps