Skip to content

Commit 935427a

Browse files
author
Martin Barreto
authored
Merge pull request #667 from ajRiverav/master
Fix readme wording
2 parents 8defea0 + 87e86c7 commit 935427a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ Android [PagerTabStrip](http://developer.android.com/reference/android/support/v
3535

3636
**Before contribute check the [CONTRIBUTING](CONTRIBUTING.md) file for more info.**
3737

38-
If you use **XLPagerTabStrip** in your app We would love to hear about it! Drop us a line on [twitter](https://twitter.com/xmartlabs).
38+
If you use **XLPagerTabStrip** in your app we would love to hear about it! Drop us a line on [twitter](https://twitter.com/xmartlabs).
3939

4040
## Pager Types
4141

4242
The library provides 4 different ways to show the view controllers.
4343

4444
### Button Bar
4545

46-
This is likely to be the most common pager type. It's used by many well known apps such as instagram, youtube, skype and many others.
46+
This is likely the most common pager type. It's used by many well-known apps such as instagram, youtube, skype, and many others.
4747

4848
<img src="Example/barButton.gif" width="250"/>
4949

@@ -55,28 +55,28 @@ This mode doesn't show a title neither an image. It only shows a bar that indica
5555

5656
### Twitter
5757

58-
Long time ago twitter app made use of this type of pager in the app main screen.
58+
A long time ago, the twitter app made use of this type of pager in the app main screen.
5959

6060
<img src="Example/twitter.gif" width="250"/>
6161

6262
### Segmented
6363

64-
This mode uses a `UISegmentedControl` to indicates which is the view controller being displayed.
64+
This mode uses a `UISegmentedControl` to indicate which view controller is being displayed.
6565

6666
<img src="Example/segmented.gif" width="250"/>
6767

6868
## Usage
6969

70-
Basically we just need to provide the list of child view controllers to show and these view controllers should provide the information (title or image) that will be shown in the associated indicator.
70+
Basically, we just need to provide the list of child view controllers to show, and these view controllers should provide the information (title or image) that will be shown in the associated indicator.
7171

7272
Let's see the steps to do this:
7373

7474
##### Choose which type of pager we want to create
7575

76-
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`.
76+
First, we must 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`.
7777

78-
> All these build-in pager controllers extend from the base class `PagerTabStripViewController`.
79-
> You can also make your custom pager controller by extending directly from `PagerTabStripViewController` in case no pager menu type fits your needs.
78+
> All these built-in pager controllers extend from the base class `PagerTabStripViewController`.
79+
> You can also make your custom pager controller by extending directly from `PagerTabStripViewController` in the event that no pager menu type fits your needs.
8080
8181
```swift
8282
import XLPagerTabStrip
@@ -88,14 +88,14 @@ class MyPagerTabStripName: ButtonBarPagerTabStripViewController {
8888

8989
##### Connect outlets and add layout constraints
9090

91-
We strongly recommend to use IB to set up our page controller views.
91+
We strongly recommend using IB to set up our page controller views.
9292

93-
Drag into the storyboard a `UIViewController` and set up its class with your pager controller (`MyPagerTabStripName`).
93+
Drag a `UIViewController` into the storyboard and set up its class with your pager controller (`MyPagerTabStripName`).
9494
Drag a `UIScrollView` into your view controller view and connect `PagerTabStripViewController` `containerView` outlet with the scroll view.
9595

9696
Depending on which type of paging view controller you are working with you may have to connect more outlets.
9797

98-
For `BarPagerTabStripViewController` we should connect `barView` outlet. barView type is UIView. `ButtonBarPagerTabStripViewController` requires us to connect `buttonBarView` outlet. `buttonBarView` type is `ButtonBarView` which extends from `UICollectionView`. `SegmentedPagerTabStripViewController` has a `segmentedControl` outlet, if the outlet is not connected the library try to set up the navigationItem `titleView` property using a `UISegmentedControl`. `TwitterPagerTabStripViewController` doesn't require us to connect any additional outlet.
98+
For `BarPagerTabStripViewController`, we should connect `barView` outlet. barView type is UIView. `ButtonBarPagerTabStripViewController` requires us to connect `buttonBarView` outlet. `buttonBarView` type is `ButtonBarView` which extends from `UICollectionView`. `SegmentedPagerTabStripViewController` has a `segmentedControl` outlet; if the outlet is not connected the library try to set up the navigationItem `titleView` property using a `UISegmentedControl`. `TwitterPagerTabStripViewController` doesn't require us to connect any additional outlet.
9999

100100
> The example project contains a example for each pager controller type and we can look into it to see how views were added and how outlets were connected.
101101
@@ -127,7 +127,7 @@ class MyEmbeddedViewController: UITableViewController, IndicatorInfoProvider {
127127
}
128128
```
129129

130-
**For a detailed step by step guide about how to use the library, please check out this community [blog post](https://medium.com/michaeladeyeri/how-to-implement-android-like-tab-layouts-in-ios-using-swift-3-578516c3aa9).**
130+
**For a detailed step-by-step guide about how to use the library, please check out this community [blog post](https://medium.com/michaeladeyeri/how-to-implement-android-like-tab-layouts-in-ios-using-swift-3-578516c3aa9).**
131131

132132
That's it! We're done! 🍻🍻
133133

@@ -162,15 +162,15 @@ PagerTabStripBehaviour.progressive(skipIntermediateViewControllers: true, elasti
162162
PagerTabStripBehaviour.progressive(skipIntermediateViewControllers: true, elasticIndicatorLimit: true)
163163
```
164164

165-
As you might have noticed `common` and `progressive` enumeration cases has `skipIntermediateViewControllers` and `elasticIndicatorLimit` associated values.
165+
As you might have noticed, `common` and `progressive` enumeration cases have `skipIntermediateViewControllers` and `elasticIndicatorLimit` associated values.
166166

167167
`skipIntermediateViewControllers` allows us to skip intermediate view controllers when a tab indicator is tapped.
168168

169169
`elasticIndicatorLimit` allows us to tension the indicator when we reach a limit, I mean when we try to move forward from last indicator or move back from first indicator.
170170

171171
##### PagerTabStripDelegate & PagerTabStripIsProgressiveDelegate
172172

173-
Normally we don't need to implement these protocols because each pager type already conforms to it in order to properly update its indicator. Anyway there may be some scenarios when overriding a method come come in handy.
173+
Normally we don't need to implement these protocols because each pager type already conforms to it in order to properly update its indicator. However, there may be some scenarios when overriding a method may come in handy.
174174

175175
```swift
176176
public protocol PagerTabStripDelegate: class {
@@ -184,7 +184,7 @@ public protocol PagerTabStripIsProgressiveDelegate : PagerTabStripDelegate {
184184
}
185185
```
186186

187-
> Again, The method invoked by the library depends on the `pagerBehaviour` value.
187+
> Again, the method invoked by the library depends on the `pagerBehaviour` value.
188188
189189

190190

0 commit comments

Comments
 (0)