APFancyPagerDelegate
@objc
public protocol APFancyPagerDelegate : AnyObject
Delegate protocol for APFancyPager
-
fancyPagerViewController(_:isScrollingFromIndex:toIndex:progress:)
Default implementationYou can implement this function in order to get information while the user is scrolling through the APFancyPager.
Default Implementation
Declaration
Swift
func fancyPagerViewController(_ fancyPagerViewController: APFancyPagerViewController, isScrollingFromIndex fromIndex: Int, toIndex: Int, progress: CGFloat)
Parameters
fancyPagerViewController
APFancyPagerViewController object of currently using.
isScrollingFromIndex
Index parameter that user started to scrolling from in the APFancyPager.
toIndex
Index parameter that user started to scrolling to in the APFancyPager.
progress
Progress of the scrolling.
-
fancyPagerViewController(_:didScrollToIndex:)
Default implementationYou can implement this function in order to get information when the user did scroll successfully through the APFancyPager.
Default Implementation
Declaration
Swift
func fancyPagerViewController(_ fancyPagerViewController: APFancyPagerViewController, didScrollToIndex index: Int)
Parameters
fancyPagerViewController
APFancyPagerViewController object of currently using.
didScrollToIndex
Index parameter that user scrolled in the APFancyPager.