Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kahayash authored and kahayash committed Jul 6, 2017
1 parent cee01a6 commit 511ee37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PagingKit/PagingMenuViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public class PagingMenuViewController: UIViewController {
return collectionView.visibleCells
}

public var currentFocusedCell: UICollectionViewCell? {
return collectionView.indexPathForItem(at: focusView.center).flatMap(collectionView.cellForItem)
}

public func cellForItem(at index: Int) -> UICollectionViewCell? {
return collectionView.cellForItem(at: IndexPath(item: index, section: 0))
}
Expand Down

0 comments on commit 511ee37

Please sign in to comment.