Skip to content

RotateInOut - Cells are not vertical @ center #53

Description

@jminutaglio

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions