commit 1c2a7db32809a06fa86027b76aebc582ba75a291
parent 3110abc65bd76564a7da6d966ca8056322fd16bf
Author: William Casarin <jb55@jb55.com>
Date: Sat, 4 Mar 2023 18:18:58 -0500
slightly smoother shaka animation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift
@@ -169,7 +169,7 @@ struct LikeButton: View {
@Environment(\.colorScheme) var colorScheme
// Following four are Shaka animation properties
- let timer = Timer.publish(every: 0.1, on: .main, in: .common).autoconnect()
+ let timer = Timer.publish(every: 0.05, on: .main, in: .common).autoconnect()
@State private var shouldAnimate = false
@State private var rotationAngle = 0.0
@State private var amountOfAngleIncrease: Double = 0.0