included Sparkle
This commit is contained in:
@@ -15,11 +15,10 @@ struct ShimmerModifier: ViewModifier {
|
||||
guard active else { return }
|
||||
animate()
|
||||
}
|
||||
.onChange(of: active) { isActive in
|
||||
if isActive {
|
||||
phase = -1
|
||||
animate()
|
||||
}
|
||||
.onChange(of: active) {
|
||||
guard active else { return }
|
||||
phase = -1
|
||||
animate()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user