mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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:
committed by
Stefan Ceriu
parent
23137726de
commit
966e347a1b
@@ -42,7 +42,7 @@ struct ShimmerModifier: ViewModifier {
|
|||||||
func body(content: Content) -> some View {
|
func body(content: Content) -> some View {
|
||||||
content
|
content
|
||||||
.mask { gradient }
|
.mask { gradient }
|
||||||
.onAppear {
|
.task {
|
||||||
withAnimation(.linear(duration: 1.75).delay(0.5).repeatForever(autoreverses: false)) {
|
withAnimation(.linear(duration: 1.75).delay(0.5).repeatForever(autoreverses: false)) {
|
||||||
animationTrigger.toggle()
|
animationTrigger.toggle()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user