XLPagerTabStrip:标签栏中的标题标签未完全显示

XLPagerTabStrip : My title label in tab bar not fully showed

如何解决此选项卡标签未完全显示的问题?

截图问题:

[![在此处输入图片描述][1]][1]

当我在新项目中尝试时,标签栏标签显示正常,但在我现在的项目中,标签栏标签显示不完整,请帮助我,这个有什么问题

        settings.style.buttonBarBackgroundColor = .white
        settings.style.buttonBarItemBackgroundColor = .white
        settings.style.selectedBarBackgroundColor = blueInstagramColor
        settings.style.buttonBarItemFont = .boldSystemFont(ofSize: 14)
        settings.style.selectedBarHeight = 2.0
        settings.style.buttonBarMinimumLineSpacing = 0
        settings.style.buttonBarItemTitleColor = .black
        settings.style.buttonBarItemsShouldFillAvailableWidth = 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?.blueInstagramColor
        }

        super.viewDidLoad()

        backListener()
    }

    override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
        let child_1 = LeaveWaitingViewController()
        let child_2 = LeaveApprovedViewController()
        let child_3 = LeaveRejectedViewController()

        return [child_1, child_2, child_3]
    }


  [1]: https://i.stack.imgur.com/UBrLy.png

标签中有问题,要解决此问题,您只需检查您是否在项目中添加了任何标签扩展,尝试将其删除