CarouselCollectionViewLayoutDataSource
public protocol CarouselCollectionViewLayoutDataSource : AnyObject
Data source for custom carousel collection view layout
-
Method to provide any sort of transform that should be applied to the carousel cell
Declaration
Swift
func carouselLayout(_ layout: CarouselCollectionViewLayout, transformForItemAt indexPath: IndexPath) -> CGAffineTransform
Parameters
layout
carousel collection view layout instance
indexPath
index path of cell