Closed grantespo closed 3 years ago
When, i first load my ButtonBarPagerTabStripViewController with 4 tabs, it looks perfect.
ButtonBarPagerTabStripViewController
However, when I select the 3rd or 4th tab, my ButtonBarView Tabs become aligned to the left.
How can I ensure that the tabs are always centered?
Here are my settings:
settings.style.buttonBarItemBackgroundColor = whiteBlackColor settings.style.selectedBarBackgroundColor = selectedMenuColor settings.style.buttonBarItemFont = .boldSystemFont(ofSize: 14) settings.style.selectedBarHeight = 2.0 settings.style.buttonBarMinimumLineSpacing = 0 settings.style.buttonBarItemTitleColor = unselectedMenuColor settings.style.buttonBarItemsShouldFillAvailableWidth = true settings.style.buttonBarLeftContentInset = 0 settings.style.buttonBarRightContentInset = 0`
In view.DidLoad():
buttonBarView.contentOffset = CGPoint(x: 0, y: 0)
When, i first load my
ButtonBarPagerTabStripViewController
with 4 tabs, it looks perfect.However, when I select the 3rd or 4th tab, my ButtonBarView Tabs become aligned to the left.
How can I ensure that the tabs are always centered?
Here are my settings: