RankingsPageVC
final class RankingsPageVC : UIViewController
extension RankingsPageVC: UICollectionViewDelegateFlowLayout
extension RankingsPageVC: UICollectionViewDataSource
extension RankingsPageVC: RankingHeaderDelegate
extension RankingsPageVC: Exposing
extension RankingsPageVC: CollectionCellExposing
                Displays logged in user visit counts
- 
                  
                  
View displaying ranking cells
Declaration
Swift
let collectionView: UICollectionView - 
                  
                  
Construction with paging options
Declaration
Swift
init(options: PagingOptions)Parameters
optionsOptions
 - 
                  
                  
Refresh collection view on layout
Declaration
Swift
override func viewWillLayoutSubviews() - 
                  
                  
Handle dependency injection
Declaration
Swift
func inject(list: Checklist, insets: UIEdgeInsets, delegate: RankingsPageVCDelegate)Parameters
listChecklist
insetsEdge instets
delegateRankingsPageVCDelegate
 
- 
                  
                  
Provide header size
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSizeParameters
collectionViewCollection
collectionViewLayoutCollection layout
sectionSection index
Return Value
Size
 - 
                  
                  
Provide cell size
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSizeParameters
collectionViewCollection
collectionViewLayoutCollection layout
indexPathCell path
Return Value
Size
 
- 
                  
                  
Scrolling notfication
Declaration
Swift
func scrollViewDidScroll(_ scrollView: UIScrollView)Parameters
scrollViewScrollee
 
- 
                  
                  
Provide header
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableViewParameters
collectionViewCollection
kindExpect header
indexPathItem path
Return Value
RankingHeader
 - 
                  
                  
Section items count
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> IntParameters
collectionViewCollection
sectionIndex
Return Value
Item count
 - 
                  
                  
Provide cell
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCellParameters
collectionViewCollection
indexPathIndex path
Return Value
RankingCell
 
- 
                  
                  
Tap notification
Declaration
Swift
func tapped(header: RankingHeader)Parameters
headerTapped header
 
- 
                  
                  
Expose controls to UI tests
Declaration
Swift
func expose() 
- 
                  
                  
Expose cell to UI tests
Declaration
Swift
func expose(view: UICollectionView, path: IndexPath, cell: UICollectionViewCell)Parameters
viewCollection
pathIndex path
cellCell
 
            View on GitHub
          
      RankingsPageVC Class Reference