how to modify the buttonBarView selectedBar width, I don't want him so wide
Asked
Active
Viewed 378 times
1 Answers
0
This is how I was able to achieve the resizing of the tabs. Since ButtonBarPagerTabStripViewController inherits from UICollectionView you can just override the sizeForItemAtIndexPath function and return the preferred width and hieght.
Swift 3
override func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: IndexPath) -> CGSize {
return CGSize(width: "preferred witdth", height: collectionView.frame.size.height)
}

Woody Jean-louis
- 475
- 6
- 12