I'm not entirely sure what you are saying, but I am just surprised because for api such as onChange the reference to sequence would update. I could have used onChange with @Published property for the double instead which would have expressed what I am trying to achieve the same. It seems like using .task is less convenient as I would need to mark the property as State; although now I am wondering if all properties of a type that contains state need to be marked as such.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: