Skip to content

Commit

Permalink
Merge pull request #351 from SebastianOsinski/master
Browse files Browse the repository at this point in the history
Update README - rename currentCardNumber to currentCardIndex
  • Loading branch information
rnkyr committed Jan 30, 2018
2 parents 4cf74e4 + f67b879 commit f654a31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,21 @@ public func reloadData()
```
This method reloads all KolodaView item views from the dataSource and refreshes the display.
```swift
public func resetCurrentCardNumber()
public func resetCurrentCardIndex()
```
This method resets currentCardNumber and calls reloadData, so KolodaView loads from the beginning.
This method resets currentCardIndex and calls reloadData, so KolodaView loads from the beginning.
```swift
public func revertAction()
```
Applies undo animation and decrement currentCardNumber.
Applies undo animation and decrement currentCardIndex.
```swift
public func applyAppearAnimationIfNeeded()
```
Applies appear animation if needed.
```swift
public func swipe(_ direction: SwipeResultDirection, force: Bool = false)
```
Applies swipe animation and action, increment currentCardNumber.
Applies swipe animation and action, increment currentCardIndex.

```swift
open func frameForCard(at index: Int) -> CGRect
Expand Down

0 comments on commit f654a31

Please sign in to comment.