MimiPagingScrollHandlerDelegate

public protocol MimiPagingScrollHandlerDelegate : AnyObject

Protocol that allows an object to respond to events a paging scroll handler detects.

  • Scroll handler did detect a scroll to a new page position.

    Declaration

    Swift

    func scrollHandler(_ handler: MimiPagingScrollHandler, didScrollTo position: CGFloat, from old: CGFloat?)
    Parameters
    handler

    Scroll handler.

    position

    Current page position.

    old

    Previous page position.

  • Scroll handler did detect a scroll to a new page.

    Declaration

    Swift

    func scrollHandler(_ handler: MimiPagingScrollHandler, didScrollTo page: Int, from old: Int?)
    Parameters
    handler

    Scroll handler.

    page

    Current page index.

    old

    Previous page index.