Skip to content

Commit

Permalink
Add pager view visibleCells property
Browse files Browse the repository at this point in the history
This method returns the complete list of visible cells displayed by the pager view.
  • Loading branch information
satishVekariya authored Jan 9, 2018
1 parent c513607 commit f9c1774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/FSPagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
open var panGestureRecognizer: UIPanGestureRecognizer {
return self.collectionView.panGestureRecognizer
}
///Returns an array of visible cells currently displayed by the pager view.
open var visibleCells: [FSPagerViewCell] {
return self.collectionView.visibleCells as! [FSPagerViewCell]
}

@objc open internal(set) dynamic var currentIndex: Int = 0

Expand Down

0 comments on commit f9c1774

Please sign in to comment.