title: SwiftUI List with alternate background colors
body: <p>In SwiftUI, TableView is replaced with List.</p>
  
  <p>Is there a way to alternate the background colors of the list's cells/rows?</p>
  
  <p>I would like to implement something like this,</p>
  
  <pre><code>if (indexPath.row % 2 == 0) { 
      aCell.backgroundColor = UIColor(red: 0, green: 1, blue: 0, alpha: 1.0) 
  }
  </code></pre>
  
  <p>See article <a href="https://medium.com/@ronm333/improving-the-appearance-of-ios-tableviews-9effb7184efb" rel="noreferrer">https://medium.com/@ronm333/improving-the-appearance-of-ios-tableviews-9effb7184efb</a> for a good example.</p>