slightly smoother shaka animation

This commit is contained in:
William Casarin
2023-03-04 18:18:58 -05:00
parent 3110abc65b
commit 1c2a7db328

View File

@@ -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