title: SwiftUI: Change List row Highlight colour when tapped
body: <p>The default colour of a list row when tapped is grey.</p>
  
  <p>I know how to change background colour using  .listRowBackground, but then it changes to the whole list.</p>
  
  <p>How can I change to a custom colour when tapped, so ONLY the tapped row stays red?</p>
  
  <pre><code>import SwiftUI
  
  struct ExampleView: View {
      @State private var fruits = ["Apple", "Banana", "Grapes", "Peach"]
  
      var body: some View {
          NavigationView {
              List {
                  ForEach(fruits, id: \.self) { fruit in
                      Text(fruit)
                  }
                  .listRowBackground(Color.red)
  
              }
  
  
          }
      }
  
  
  }
  
  struct ExampleView_Previews: PreviewProvider {
      static var previews: some View {
          ExampleView()
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1dYOX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1dYOX.png" alt="enter image description here"></a></p>