Animate content updates
When you define the user interface of your Live Activity, the system ignores any animation modifiers — for example, withAnimation(_:_:) and animation(_:value:) — and uses the system’s animation timing instead. However, the system performs some animation when the dynamic content of the Live Activity changes. Text views animate content changes with blurred content transitions, and the system animates content transitions for images and SF Symbols. If you add or remove views from the user interface based on content or state changes, views fade in and out. Use the following view transitions to configure these built-in transitions: opacity, move(edge:), slide, push(from:), or combinations of them. Additionally, request animations for timer text with numericText(countsDown:).
When Live Activity updates data, the picture will fade in and fade out, how to turn off this animation effect?
I tried all possible ways to turn off the animation, but when refreshing the Live Activity, the picture still has a semi-transparent animation.
Based on apple's developer documentation for ActivityKit, You cannot change the default animation for Live Activities. The system ignores any animation modifiers that you specify and uses its own animation timing instead. However, you can configure the built-in transitions for adding and removing views, and for timer text.
To achieve no effect, you can use multiple views that pop in and out based on the content state.
You can use the
transition
modifier for these views to appear in an animated way as described in the documentation.