Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit e661a67

Browse files
author
Amir Khorsandi
committed
Fix scale transforms
1 parent f908ff1 commit e661a67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Samples/PagingLayoutSamples/Modules/Shapes/ShapeLayout+ScaleOptions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extension ShapeLayout {
7474
maxTranslationRatio: .zero,
7575
shadowEnabled: false,
7676
rotation3d: .init(angle: .pi / 4, minAngle: -.pi, maxAngle: .pi, x: 0, y: 1, z: 0, m34: -0.000_4 - 0.8 * 0.000_2 ),
77-
translation3d: .init(translateRatios: (0, 0, 0), minTranslates: (0, 0, 320), maxTranslates: (0, 0, 320))
77+
translation3d: .init(translateRatios: (0, 0, 0), minTranslates: (0, 0, 340), maxTranslates: (0, 0, 340))
7878
)
7979
case .scaleInvertedCylinder:
8080
return ScaleTransformViewOptions(
@@ -87,8 +87,8 @@ extension ShapeLayout {
8787
shadowEnabled: false,
8888
rotation3d: .init(angle: .pi / 3, minAngle: -.pi, maxAngle: .pi, x: 0, y: -1, z: 0, m34: -0.002),
8989
translation3d: .init(translateRatios: (0, 0, 0),
90-
minTranslates: (0, 0, 375 * 0.57),
91-
maxTranslates: (0, 0, -375 * 0.57))
90+
minTranslates: (0, 0, 240),
91+
maxTranslates: (0, 0, -240))
9292
)
9393
case .scaleCoverFlow:
9494
return ScaleTransformViewOptions(

0 commit comments

Comments
 (0)