XLPagerTabStrip icon indicating copy to clipboard operation
XLPagerTabStrip copied to clipboard

Can't update selected bar width

Open cammyc opened this issue 4 years ago • 1 comments

I'm trying to update the width of the selected bar that moves to the selected item.

I can set the height like this settings.style.selectedBarHeight = 3.0

Is there a way of setting the width?

cammyc avatar Apr 05 '20 20:04 cammyc

I'm using this trick. ` self.changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in self?.buttonBarView.selectedBar.frame.size.width = 100

    }`

linhnv106 avatar May 21 '20 02:05 linhnv106