CarouselCollectionViewLayout
public class CarouselCollectionViewLayout : UICollectionViewFlowLayout
Custom collection view layout for carousel collection view
-
Override flow layout target content offset to land at a specific item (for the paging effect)
Declaration
Swift
public override func targetContentOffset( forProposedContentOffset proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint ) -> CGPoint
Parameters
proposedContentOffset
proposed content offset of flow layout to land at
velocity
scrolling velocity of collection view
-
Undocumented
Declaration
Swift
public override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]?