XLPagerTabStrip 之间的空白 space

Blank space between XLPagerTabStrip

我正在尝试在我的应用程序中实现 XLPagerTabStrip。一切都很好,因为我已经按照官方 Tutorial 我已经将我的 collectionView 的颜色更改为红色。当应用程序在模拟器中运行时,我看到有一个空白 space 像 image

我想知道如何删除空白 space?因为它应该都是红色的,我该如何改变黑色线条的颜色?

这是我的代码:

override func viewDidLoad() {
    super.viewDidLoad()
    settings.style.buttonBarBackgroundColor = .red
    settings.style.buttonBarItemBackgroundColor = .red
    settings.style.selectedBarBackgroundColor = purpleInspireColor
    settings.style.buttonBarItemFont = UIFont.systemFont(ofSize: 12, weight: UIFont.Weight.regular)
    settings.style.selectedBarHeight = 0.5
    settings.style.buttonBarMinimumLineSpacing = 0
    settings.style.buttonBarItemTitleColor = .white
    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 = .white
        newCell?.label.textColor = self?.purpleInspireColor
    }
}

我解决了我的问题 我忘了这一行 super.viewDidLoad() 应该在 viewDidload 方法的最后