Questions tagged [xlpagertabstrip]

Use this tag for question about the XLPagerTabStrip component library for switching among a collection of view controllers using tabs.

It is the iOS version of the Android PagerTabStrip. XLPagerTabStrip is a Container View Controller that allows us to switch easily among a collection of view controllers. Pan gesture can be used to move on to next or previous view controller. It shows a interactive indicator of the current, previous, next child view controllers.

For more info see the github project

95 questions
1
vote
0 answers

XLPagerTabStrip doesn't cover the full width

Hi so basically my xlpagertabstrip doesn't cover the full width especially if the width goes to the ipad size. I already tried different methods from the past problems with the same issue to no avail such as changing the buttonbarviewcontroller's…
Jov
  • 31
  • 1
  • 9
1
vote
0 answers

Display button only when specific child is selected

I'm using XLPagerTabStrip in my app to display three different children.. this is working perfectly. import UIKit import XLPagerTabStrip class AccountViewController: ButtonBarPagerTabStripViewController { override func viewDidLoad() { …
mrs.tat
  • 597
  • 2
  • 6
  • 17
1
vote
1 answer

Expose indexPath to configureCell

Currently configureCell only has access to the cell and IndicatorInfo. In my use case, I would like to know the indexPath of the cell so that I know which cell I am configuring and customize accordingly. Specifically we want to very first cell…
Fabe Tob
  • 11
  • 2
1
vote
2 answers

XLPagerTabStrip - How to add UISearchController

I am using this library: https://github.com/xmartlabs/XLPagerTabStrip My problem is that I can't resolve an issue with adding a UISearchController for one of ButtonBarPagerTabStripViewController child viewController - UITableViewController. The…
piotr_ch
  • 508
  • 3
  • 7
  • 17
1
vote
1 answer

ChildViewController breaks NavigationViewController in XLPagerTabStrip - Swift

How can i programatically swich to child ViewControllers using XLPagertabStrip. I have a ParentViewController named Parentcontroller including three ChildViewController named Child1VC,Child2VC,Child3VC. each childviewController having tableViews,I…
JUNAID TT
  • 13
  • 3
1
vote
1 answer

XLPagerTabStrip Squeezed ButtonBarView in Swift 4

I've just recently updated my code to swift 4 and I was using XLPagerTabStrip and this happened: I referred to this article when I was implementing this and it was working great till Swift 3.2. It's a collection view and I'm using autoresizing for…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
1
vote
2 answers

subclassing from multiple class library in ios swift

I have a ViewController that want to inherit from 2 libraries, for example: class ViewController : BaseViewController, ButtonBarPagerTabStripViewController{ } I know swift won't let me do that, So what is the best way to inherit from both clasess.
Muhammad Fauzi Masykur
  • 1,994
  • 1
  • 15
  • 18
1
vote
0 answers

Error when running app from Xcode Version 8.3.3 (8E3004b)

When running the app from Xcode Version 9.0 beta 4 (9M189t), everything works fine. But when I run the same code on Xcode Version 8.3.3 (8E3004b), the app crashes with this message: PagerTabViewController in Interface Builder file. *** Terminating…
fcberg
  • 764
  • 13
  • 29
1
vote
1 answer

XLPagerTabStrip: add space between ButtonBarView and NavigationBar iOS

I'm using XLPagerTabStrip in a swift 3 application. This is my storyboard: 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…
OuSS
  • 1,047
  • 1
  • 15
  • 23
1
vote
1 answer

XLPagerTabStrip - Selected tab selection not working

The selected tab indicator in the XLPagerTabStrip Library is not working with Swift 3 and XCode 8 I'm using the following customization for the Tab Strip super.viewDidLoad() buttonBarView.selectedBar.backgroundColor = UIColor(red:…
Vaibhav Jhaveri
  • 1,579
  • 3
  • 28
  • 53
1
vote
1 answer

storyboard views are not connected while using an iOS library

I am trying to implement a library(named: XLPagerTabStrip). Everything works fine with the help of this available tutorial [ https://github.com/xmartlabs/XLPagerTabStrip ]. My problem is: I can change my view controllers layout using code but i'm…
Aashish
  • 2,532
  • 2
  • 23
  • 28
1
vote
3 answers

Swift: How to segue between view controllers and use navigation bar to go backwards within a child view controller (XLPagerTabStrip)

I am currently implementing the XLPagerTabStrip (https://github.com/xmartlabs/XLPagerTabStrip) which effectively creates a tab bar at the top of the view controller. I want to be able to segue to a new view controller from one of the tabbed…
1
vote
3 answers

Collectionview inside XLPagerTabStrip

I have a CollectionView that runs, and a XLPagerTabStrip than also run, but when I integrate my CollectionView inside XLPagerTabStrip in the IndicatorInfoProvider I have this error... Thanks!
1
vote
1 answer

Prefer swipe to delete over a competing swipe gesture

So I have a tableViewController inside a XLPagerTabStrip view controller, basically a pod which allows me to swipe between child view controllers left and right. The problem is that I want to disable the view controller scroll when the user swipes…
JohnVanDijk
  • 3,546
  • 1
  • 24
  • 27
0
votes
1 answer

issue with XLPagerTabStrip while implementing in my app

i am creating using Swift in my app i am implementing XLPagerTabStrip and i have referred below blog to implement here is the link This is the reference link all thing works perfect although when i navigate to my Home screen then XLPagerTabStrip…