CarouselCollectionViewLayoutDelegate

public protocol CarouselCollectionViewLayoutDelegate : AnyObject

Delegate for custom carousel collection view layout

  • This method is called when user stops scrolling and layout will target the correct lens to land at

    Declaration

    Swift

    func carouselLayout(_ layout: CarouselCollectionViewLayout, willTargetIndex index: Int)

    Parameters

    layout

    carousel collection view layout instance

    index

    index of item that it will land at