AnimatedCollectionViewLayout icon indicating copy to clipboard operation
AnimatedCollectionViewLayout copied to clipboard

RotateInOut - Cells are not vertical @ center

Open jminutaglio opened this issue 6 years ago • 0 comments

I'm seeing that cells are not centered in RotateInOut (and other animators) - meaning at the center position of the scroll - using isPagingEnabled - the cell is rotated.

let layout = AnimatedCollectionViewLayout()
layout.animator = RotateInOutAttributesAnimator(minAlpha: 1)
myChartCollectionView.collectionViewLayout = layout
myChartCollectionView.frame = CGRect(x: 0, y: 144, width: 414, height: 718)
layout.itemSize = CGSize(width: 384, height: 624)
layout.minimumLineSpacing = 0
layout.minimumInteritemSpacing = 0
layout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
myChartCollectionView.isPagingEnabled = true
layout.scrollDirection = .horizontal

myChartCollectionView.dataSource = self
myChartCollectionView.delegate = self

Is this a bug in the center/rotation calculator AnimatedCollectionViewLayout or a setting/config I'm missing? TY!

jminutaglio avatar Sep 20 '19 13:09 jminutaglio