GlidingCollectionDelegate

public protocol GlidingCollectionDelegate

This delegate provides methods which can notify when transition starts/ends & when item was selected.

  • This method will be called before starting transition from one item to another.

    Declaration

    Swift

    func glidingCollection(_ collection: GlidingCollection, willExpandItemAt index: Int)

    Parameters

    collection

    GlidingCollection

    index

    Index of item that being expand.

  • This method will be called when transition between items was finished.

    Declaration

    Swift

    func glidingCollection(_ collection: GlidingCollection, didExpandItemAt index: Int)

    Parameters

    collection

    GlidingCollection

    index

    Index of expanded item.

  • This method will be called if selected one of the element of vertical stack.

    Declaration

    Swift

    func glidingCollection(_ collection: GlidingCollection, didSelectItemAt index: Int)

    Parameters

    collection

    GlidingCollection

    index

    Index of selected item.