diff --git a/README.md b/README.md index 44d5d57..32ccf6c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Let's see the steps to do this: ##### Choose which type of pager we want to create -Fist we should choose the type of pager we want to create, depending on our choice we will have to create a view controller that extend from one of the following controllers: `TwitterPagerTabStripViewController`, `ButtonBarPagerTabStripViewController`, `SegmentedPagerTabStripViewController`, `BarPagerTabStripViewController`. +First we should choose the type of pager we want to create, depending on our choice we will have to create a view controller that extends from one of the following controllers: `TwitterPagerTabStripViewController`, `ButtonBarPagerTabStripViewController`, `SegmentedPagerTabStripViewController`, `BarPagerTabStripViewController`. > All these build-in pager controllers extend from the base class `PagerTabStripViewController`. > You can also make your custom pager controller by extending directly from `PagerTabStripViewController` in case no pager menu type fits your needs. @@ -218,8 +218,10 @@ public var buttonBarHeight: CGFloat? We may need to update the indicator cell when the displayed view controller changes. The following function properties help to accomplish that. Depending on our pager `pagerBehaviour` value we will have to set up `changeCurrentIndex` or `changeCurrentIndexProgressive`. +```swift public var changeCurrentIndex: ((oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, animated: Bool) -> Void)? public var changeCurrentIndexProgressive: ((oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void)? +``` Let's see an example: