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
fancyPagerViewControllerAPFancyPagerViewController object of currently using.
isScrollingFromIndexIndex parameter that user started to scrolling from in the APFancyPager.
toIndexIndex parameter that user started to scrolling to in the APFancyPager.
progressProgress 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
fancyPagerViewControllerAPFancyPagerViewController object of currently using.
didScrollToIndexIndex parameter that user scrolled in the APFancyPager.
APFancyPagerDelegate Protocol Reference