Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RotateInOut - Cells are not vertical @ center #53

Open
jminutaglio opened this issue Sep 20, 2019 · 0 comments
Open

RotateInOut - Cells are not vertical @ center #53

jminutaglio opened this issue Sep 20, 2019 · 0 comments

Comments

@jminutaglio
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant