animation(_:)
Sets the animation with which the transition will be applied.
Declaration
func animation(_ animation: Animation) -> ScrollTransitionConfigurationParameters
- animation:
An animation that will be used to apply the transition to the view.
Return Value
A copy of this configuration with the animation set to the given value.
Discussion
If the transition is interactive, the given animation will be used to animate the effect toward the current interpolated value, causing the effect to lag behind the current scroll position.