iosswiftxlpagertabstrip

XLPagerTabStrip swift


I'm trying to implement XLPagerTabStrip in my project. in the documentation it says "ButtonBarPagerTabStripViewController requires us to connect buttonBarView outlet. buttonBarView type is ButtonBarView which extends from UICollectionView." what this means. Sorry for my bad English.


Solution

  • I hope you're talking about this below lines that is mentioned in this post.

    enter image description here


    1. According to document your ButtonBarPager working is like below gif.

    enter image description here

    1. To use this first you have to implement this below code

      import XLPagerTabStrip
      
      class MyPagerTabStripName: ButtonBarPagerTabStripViewController {
          ..
      }
      
    2. Now press cmd key from keyboard and click on the ButtonBarPagerTabStripViewController. It navigates you to the ButtonBarPagerTabStripViewController.

    3. There is a outlet buttonBarView (as shown in below image).

    enter image description here

    1. Now you have to bind this outlet to the view which you wanted use as a barView. Check below image.

    enter image description here

    Hope now you'r cleared.

    Edit

    If you check the definition of ButtonBarView then it extends UICollectionView and same is written in the description post. Check below Image for more clearance.

    enter image description here

    enter image description here