diff --git a/Sources/BaseButtonBarPagerTabStripViewController.swift b/Sources/BaseButtonBarPagerTabStripViewController.swift index 5bb526c..eb205d1 100644 --- a/Sources/BaseButtonBarPagerTabStripViewController.swift +++ b/Sources/BaseButtonBarPagerTabStripViewController.swift @@ -152,7 +152,7 @@ public class BaseButtonBarPagerTabStripViewController suggestedStretchedCellWidth { totalWidthOfLargeCells += minimumCellWidthValue - numberOfLargeCells++ + numberOfLargeCells += 1 } } diff --git a/Sources/ButtonBarPagerTabStripViewController.swift b/Sources/ButtonBarPagerTabStripViewController.swift index 56c23cc..2bad00d 100644 --- a/Sources/ButtonBarPagerTabStripViewController.swift +++ b/Sources/ButtonBarPagerTabStripViewController.swift @@ -188,7 +188,7 @@ public class ButtonBarPagerTabStripViewController: PagerTabStripViewController, for minimumCellWidthValue in minimumCellWidths where minimumCellWidthValue > suggestedStretchedCellWidth { totalWidthOfLargeCells += minimumCellWidthValue - numberOfLargeCells++ + numberOfLargeCells += 1 } guard numberOfLargeCells > previousNumberOfLargeCells else { return suggestedStretchedCellWidth }