fix swift 3 deprecations.

This commit is contained in:
Martin Barreto 2016-02-02 13:47:41 -03:00
parent 9782a0293e
commit f57d272980
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ public class BaseButtonBarPagerTabStripViewController<ButtonBarCellType : UIColl
for minimumCellWidthValue in minimumCellWidths {
if minimumCellWidthValue > suggestedStretchedCellWidth {
totalWidthOfLargeCells += minimumCellWidthValue
numberOfLargeCells++
numberOfLargeCells += 1
}
}

View File

@ -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 }