title: Button color to be changed depending on the state (normal, highlighted, disabled) in SwiftUI?
body: <p>Instead of setting colors manually,Is it possible to set the colors for different states(normal, highlighted, disabled)?</p>
  
  <p>var color: Color
  {
     return condition ? .red : .blue
  }</p>
  
  <p>So I have set the color change this way but is it possible to change it depending on the state?
  Instead of having to manually check for state and change colors?
  Something like this?</p>
  
  <p>background(color, for: state)</p>