Skip to content

Commit

Permalink
update scrollToCard documentation (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoniVR committed Nov 18, 2018
1 parent 120061d commit fc72b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/VerticalCardSwiper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ extension VerticalCardSwiper: UICollectionViewDelegate, UICollectionViewDataSour

/**
Scrolls the collection view contents until the specified item is visible.
If you want to scroll to a specific card from the start, make sure to call this function in `viewDidLayoutSubviews`
instead of functions like `viewDidLoad` as the underlying collectionView needs to be loaded first for this to work.
- parameter index: The index of the item to scroll into view.
- parameter animated: Specify true to animate the scrolling behavior or false to adjust the scroll view’s visible content immediately.
*/
Expand Down

0 comments on commit fc72b50

Please sign in to comment.