We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43dac3 commit b31c041Copy full SHA for b31c041
Sources/AnimatedCollectionViewLayout/Animators/CubeAttributesAnimator.swift
@@ -26,6 +26,7 @@ public struct CubeAttributesAnimator: LayoutAttributesAnimator {
26
let position = attributes.middleOffset
27
if abs(position) >= 1 {
28
attributes.contentView?.layer.transform = CATransform3DIdentity
29
+ attributes.contentView?.keepCenterAndApplyAnchorPoint(CGPoint(x: 0.5, y: 0.5))
30
} else if attributes.scrollDirection == .horizontal {
31
let rotateAngle = totalAngle * position
32
var transform = CATransform3DIdentity
0 commit comments