APFancyPagerDelegate

@objc
public protocol APFancyPagerDelegate : AnyObject

Delegate protocol for APFancyPager

  • You 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.

  • You 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.