title: SwiftUI - Multiple Buttons in a List row
body: <p>Say I have a <code>List</code> and two buttons in one row, how can I distinguish which button is tapped without the entire row highlighting?</p>
  <p>For this sample code, when any one of the buttons in the row is tapped, both button's action callbacks are invoked.</p>
  <pre><code>// a simple list with just one row
  List {
  
      // both buttons in a HStack so that they appear in a single row
      HStack {
          Button {
              print(&quot;button 1 tapped&quot;)
          } label: {
              Text(&quot;One&quot;)
          }
              
          Button {
              print(&quot;button 2 tapped&quot;)
          } label: {
              Text(&quot;Two&quot;)
          }
      }
  }
  </code></pre>
  <p>When only one of buttons is tapped once, I see the callbacks for both buttons being called, which is not what I want:</p>
  <pre class="lang-sh prettyprint-override"><code>button 1 tapped
  button 2 tapped
  </code></pre>