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
2
votes
1 answer

How to disable swipe up and swipe down

I am using XLPagerTabStrip and have a tab bar across the top of the screen. It scrolls fine left and right and works great, but for some reason it also scrolls up and down and I cannot figure out a way to top the behavior. I have read through the…
LilMoke
  • 3,176
  • 7
  • 48
  • 88
2
votes
6 answers

XLPagerTabStrip select what view controller will be shown first

I'm using XLPagerTabStrip to switch among a collection of view controllers. I have three view controllers and I would like that middle view controller is shown by default as first. I could use let parentViewController = self.parent! as!…
user3593157
  • 47
  • 2
  • 9
2
votes
1 answer

XLPagerTabStrip: Title label doesn't show on pager tab

I'd like to create pager tab like InstagramExample of XLPagerTabStrip and I follow all layout and coding to get the same. After adding everything I cannot see the title label on pager tab but I can swipe views as much as I add in array. Could anyone…
zavrina
  • 305
  • 3
  • 14
2
votes
2 answers

TopPadding occurs when using XLPagerTabStrip and UITableView

SubViewController (a child of ViewController and IndicatorInfoProvider) is added using MainViewController (a child of ButtonBarPagerTabStripViewController) with NavigationBar added. Padding does not occur even if you tap tabbutton, padding occurs on…
Tagorimo
  • 21
  • 4
2
votes
1 answer

XLPagerTabStrip to add Image and label in IOs Swift View Pager

I am making an app with View pager app, I am using XLPagerTabStrip library for making it. It works fine with Title in the Viewpager item. I want to add Icon and corresponding Label in it.
2
votes
1 answer

XLPagerTabStrip - How do I change the selected bar color as the selection changes

I'm trying to do a design a XLPagerTabStrip control where the overall theme changes as the tabs change. The following is what's getting called when a tab changes changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell:…
Ben987654
  • 3,280
  • 4
  • 27
  • 50
2
votes
3 answers

Switch child viewcontrollers programmatically : XLPagerTabStrip

I have been using the XLPagerTabStrip to effectively create a tab bar at the top of my view controller, with multiple child view controllers displayed within it. Lets call Home as parent controller which extends ButtonBarPagerTabStripViewController.…
ASP
  • 1,974
  • 3
  • 18
  • 30
2
votes
2 answers

xlpagertabstrip cannot hook up containerView

I feel like this is a really daft problem, but I cannot seem to hook my UIScrollView up to the containerView property. I have a UIViewController in the storyboard, whose class is MyCustomClass. MyCustomerClass inherits from…
Welton122
  • 1,101
  • 2
  • 13
  • 28
2
votes
1 answer

Swift Swipe Navigation Table Views

I'm trying to do a swipe navigation between different tableViewControllers in swift. I managed to do it with viewControllers with the following code : import UIKit class ViewController: UIViewController { @IBOutlet weak var scrollView:…
TheoF
  • 795
  • 2
  • 7
  • 16
1
vote
1 answer

Multiple Inheritance Issue while using baseViewController and ButtonBarPagerTabStripViewController

I am using the XLPagerTabStrip library for the tab bar in my app and also I have created a base view controller for some unique views to be used on multiple screens So as swift doesn't allow multiple inheritances I cannot inherit baseviewcontroller…
NickCoder
  • 1,504
  • 2
  • 23
  • 35
1
vote
1 answer

Customizing NavigationBar per XLPagerTabStrip ButtonBarPagerTabStripViewController page

I am using XLPagerTabStrip library and using the ButtonBarPagerTabStripViewController. This is what the hierarchy looks like: The ButtonBarPagerTabStripViewController is embedded inside a navigationController and I have two different…
1
vote
0 answers

When pager loads for the first time view in first childViewController leaves space from both side for the first time

when XLPagerTabStrip loads view in the first child view controller leave space from both sides but if I switched tabs then it acquires the screen as I wanted. here is the screenshot of a simulator for understanding: And after switching tabs it…
NickCoder
  • 1,504
  • 2
  • 23
  • 35
1
vote
1 answer

How to refresh parentViewContoller from childViewContoller in swift?

I used XLPagerTabStrip for TabBar Refer. Now I am doing some functionality in childViewController based upon that I need to update that value to UILabel in parent ViewController. For Example: I am getting the values in childviewcontroller now I…
KAVIYA VENKAT
  • 337
  • 2
  • 17
1
vote
2 answers

Sharing data between tabs using XLPagerTabStrip

I'm using XLPagerTabStrip - https://github.com/xmartlabs/XLPagerTabStrip to have two tabs which share the same dataset. For the data set, in my main view (which hosts two tabs) I have a call to Firebase to get the data. Once received I make a…
sukh
  • 328
  • 2
  • 16
1
vote
1 answer

adding child change the button bar tab from RTL to LTR

am using https://github.com/xmartlabs/XLPagerTabStrip in my app .. and its work just fine as i need .. i had 5 children in the buttonbar .. and my app is in Arabic RTL language ... the tab will be like this: which is the right way to be .. i have…
Lama
  • 255
  • 3
  • 17