title: How to replace deprecated .animation() in SwiftUI?
body: <p>The <code>.animation()</code> modifier has been deprecated in iOS 15, but I'm not sure I understand how Xcode's suggested equivalent, <code>animation(_:value:)</code>, works.</p>
  <pre><code>.animation(.easeInOut(duration: 2)) // ⚠️'animation' was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.
  </code></pre>
  <p>How would I change my code to get rid of the warning?</p>