XLPagerTabStrip doesn't cover the full width i whant the solution

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



XLPagerTabStrip doesn't cover the full width i whant the solution



enter image description herethis is the main view controller
import UIKit
import XLPagerTabStrip



class ParentViewController: ButtonBarPagerTabStripViewController{


let purpleInspireColor = UIColor(red:0.13, green:0.03, blue:0.25, alpha:1.0)
override func viewDidLoad()
// change selected bar color
settings.style.buttonBarBackgroundColor = .white
settings.style.buttonBarItemBackgroundColor = .white
settings.style.selectedBarBackgroundColor = purpleInspireColor

settings.style.buttonBarItemFont = .boldSystemFont(ofSize: 14)
settings.style.selectedBarHeight = 2.0
settings.style.buttonBarMinimumLineSpacing = 0
settings.style.buttonBarItemTitleColor = .black

settings.style.buttonBarItemsShouldFillAvailiableWidth = true
settings.style.buttonBarLeftContentInset = 0
settings.style.buttonBarRightContentInset = 0
changeCurrentIndexProgressive = [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in
guard changeCurrentIndex == true else return
oldCell?.label.textColor = .black
newCell?.label.textColor = self?.purpleInspireColor

super.viewDidLoad()

override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController]
let child_1 = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "child1")
let child_2 = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "child2")
return [child_1, child_2]



And this is also the second layer
import UIKit
import XLPagerTabStrip
class ChildViewController2: UIViewController,IndicatorInfoProvider {


override func viewDidLoad()
super.viewDidLoad()




func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -> IndicatorInfo

return IndicatorInfo(title : "cheld2")
**[strong text][1]**





Welcome to SO! Please edit you question to add the source code you are using to implement xlpager.
– Gabriel Devillers
Aug 11 at 21:28





i am added my source code
– Suhaib Nofal
Aug 12 at 8:57









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard