title: Sheet inside ForEach doesn't loop over items SwiftUI
body: <p>I have an issue using a sheet inside a ForEach. Basically I have a List that shows many items in my array and an image that trigger the sheet. The problem is that when my sheet is presented it only shows the first item of my array which is &quot;Harry Potter&quot; in this case.</p>
  <p>Here's the code</p>
  <pre><code>struct ContentView: View {
      @State private var showingSheet = false
      
      var movies = [&quot;Harry potter&quot;, &quot;Mad Max&quot;, &quot;Oblivion&quot;, &quot;Memento&quot;]
      var body: some View {
          NavigationView {
              List {
                  ForEach(0 ..&lt; movies.count) { movie in
                      HStack {
                          Text(self.movies[movie])
                          Image(systemName: &quot;heart&quot;)
                      }
                          .onTapGesture {
                              self.showingSheet = true
                      }
                      .sheet(isPresented: self.$showingSheet) {
                          Text(self.movies[movie])
                      }
                  }
              }
          }
      }
  }
  </code></pre>