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
layoutcarousel collection view layout instance
indexindex of item that it will land at