MyCountsVC
final class MyCountsVC : UIViewController
extension MyCountsVC: PagingViewControllerDataSource
extension MyCountsVC: MyCountsPageVCDelegate
extension MyCountsVC: PagingViewControllerDelegate
extension MyCountsVC: InterfaceBuildable
Displays logged in user visit counts
-
Create page by index
Declaration
Swift
func pagingViewController<T>(_ pagingViewController: PagingViewController<T>, viewControllerForIndex index: Int) -> UIViewController
Parameters
pagingViewController
Page holder
index
Index
Return Value
View controller
-
Provide Parchment with typed page
Declaration
Swift
func pagingViewController<T>(_ pagingViewController: PagingViewController<T>, pagingItemForIndex index: Int) -> T
Parameters
pagingViewController
Page holder
index
Index
Return Value
Typed view controller
-
Provide Parchment with page count
Declaration
Swift
func numberOfViewControllers<T>(in: PagingViewController<T>) -> Int where T : PagingItem, T : Comparable, T : Hashable
Parameters
in
Page holder
Return Value
Page count
-
Scroll notification
Declaration
Swift
func didScroll(myCountsPageVC: MyCountsPageVC)
Parameters
rankingsPageVC
Scrollee
-
pagingViewController(_:isScrollingFromItem:toItem:startingViewController:destinationViewController:progress:)
Handle page change progress
Declaration
Swift
func pagingViewController<T>( _ pagingViewController: PagingViewController<T>, isScrollingFromItem currentPagingItem: T, toItem upcomingPagingItem: T?, startingViewController: UIViewController, destinationViewController: UIViewController?, progress: CGFloat )
Parameters
pagingViewController
Page holder
currentPagingItem
Current typed page item
upcomingPagingItem
Next typed page item
startingViewController
Start view controller
destinationViewController
Finish view controller
progress
Float
-
Enforce dependency injection
Declaration
Swift
func requireOutlets()