title: SwiftUI: Animate Text color - foregroundColor()
body: <p>I've been trying to work on animating various parts of the UI, but it seems as though you can't animate a SwiftUI Text's foregroundColor? I want to switch the color of some text smoothly when a state changes. This works fine if I animate the background color of the Text's surrounding view, but foreground color does not work. Has anyone had any luck animating a change like this? Unsure if this is an Xcode beta bug or it's intended functionality...</p>
  
  <pre><code>Text(highlightedText)
      .foregroundColor(color.wrappedValue)
      .animation(.easeInOut)
  
  // Error: Cannot convert value of type 'Text' to closure result type '_'
  </code></pre>