mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
The simmer modifier stopped animating on Xcode 14.3 iOS 16.4. Not entirely sure why but switching onAppear
to task
fixes it
This commit is contained in:
parent
23137726de
commit
966e347a1b
@ -42,7 +42,7 @@ struct ShimmerModifier: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
.mask { gradient }
|
||||
.onAppear {
|
||||
.task {
|
||||
withAnimation(.linear(duration: 1.75).delay(0.5).repeatForever(autoreverses: false)) {
|
||||
animationTrigger.toggle()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user