原文:How to perform a SwiftUI animation when an @Observable property changes
I m animating a square into a circle in the following snippet. My view observes the isCircle property to determine whether to draw a circle or square. The MyData#doSomethingExpensive method is meant ...