I have a ScrollReader that wraps a ScrollView, this scrollView has an onChange modifier, so my problem is that when I try to use value.scrollTo(…) with withAnimation the type of animation, duration, and delay I am setting is not working at all, it looks like it playing .default all the time
I tried to use timers, DispatchQueue – no result
Here is my small scroll to code:
withAnimation(.easeInOut(duration: 2).delay(2.5)) { // type, duration and delay are not working
value.scrollTo("text", anchor: .bottom)
}
If you have any questions, you are welcome