Skip to content

Commit a926a6e

Browse files
committed
Use spring animation for pagingRotation
Replace the .easeInOut animation with a .spring animation on pagingRotation in SplashScreenKit (duration 1.2s, bounce 0.25) to produce a smoother, bouncy transition when prVisible toggles.
1 parent b9710d3 commit a926a6e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Sources/SplashScreenKit/SplashScreenKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public struct SplashScreen: View {
8484
pagingRotation
8585
.offset(y: prVisible ? 0 : -500)
8686
.transition(.move(edge: .top))
87-
.animation(.easeInOut(duration: 1), value: prVisible)
87+
.animation(.spring(duration: 1.2, bounce: 0.25), value: prVisible)
8888
cta
8989
Spacer()
9090
}

0 commit comments

Comments
 (0)