Skip to content

Commit 9e78f8d

Browse files
authored
Merge pull request #63 from touchlane/readmeUpdate
Update shift() description
2 parents 01588e8 + 20ec2e0 commit 9e78f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ Removes a page at `index`.
145145
public func removeAtIndex(index: Int)
146146
```
147147

148-
Slides content to page at `pageIndex` with sliding animation if `animated` is set to `true`. The default value of `animated` is `true`.
148+
Slides content to page at `pageIndex` with sliding animation if `animated` is set to `true`. Using `forced` is not recommended, it will perform shift even if other shift animation in progress or `pageIndex` equals current page. The default value of `animated` is `true`. The default value of `forced` is `false`.
149149
```swift
150-
public func shift(pageIndex: Int, animated: Bool = default)
150+
public func shift(pageIndex: Int, animated: Bool = default, forced: Bool = default)
151151
```
152152

153153
Slides content the next page with sliding animation if `animated` is set to `true`. The default value of `animated` is `true`.

0 commit comments

Comments
 (0)