We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3a620 commit 2c632edCopy full SHA for 2c632ed
Sources/Shimmer/Shimmer.swift
@@ -83,10 +83,9 @@ public struct Shimmer: ViewModifier {
83
public func body(content: Content) -> some View {
84
content
85
.mask(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
86
+ .animation(animation, value: isInitialState)
87
.onAppear {
- withAnimation(animation) {
88
- isInitialState = false
89
- }
+ isInitialState = false
90
}
91
92
0 commit comments