How to animate defaultScrollAnchor

I use defaultScrollAnchor(_ anchor: UnitPoint?) -> some View but I don't know how to animate it?

@VolodyaStep Could you elaborate on what youre trying to achieve?

I use defaultScrollAnchor(_ anchor: UnitPoint?) -> some View but I don't know how to animate it?

Are you trying to animate anchor UnitPoint change?

I apply this modifier to the scroll, the anchor itself does not change, it turns out that when the list changes, the scroll occurs to the set anchor, let's say to the top one

How to animate defaultScrollAnchor
 
 
Q