From f57d2729808a2d28245f90f8a067c4cf8d7a60c1 Mon Sep 17 00:00:00 2001 From: Martin Barreto Date: Tue, 2 Feb 2016 13:47:41 -0300 Subject: [PATCH] fix swift 3 deprecations. --- Sources/BaseButtonBarPagerTabStripViewController.swift | 2 +- Sources/ButtonBarPagerTabStripViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }