In your example, if I wrap scrollPosition in a withAnimation:
Button("Set to 0") { scrollPosition = 0 }
Button("Set to 0") { withAnimation { scrollPosition = 0 }}
It has no effect. Is there a reason for this? I'm trying to animate scroll position in my chart? Thanks
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: