title: How do you use .enumerated() with ForEach in SwiftUI?
body: <p>Here's a simple SwiftUI List that works as expected:</p>
  <pre><code>struct App: View {
    let items = Array(100...200)
    var body: some View {
      List {
        ForEach(items, id: \.self) { index, item in
          Text(&quot;Item \(item)&quot;)
        }
      }.frame(width: 200, height: 200)
    }
  }
  </code></pre>
  <p>but when I try to enumerate items by replacing <code>items</code> with <code>items.enumerated()</code> I get these errors:</p>
  <blockquote>
  <p>Referencing initializer 'init(_:id:content:)' on 'ForEach' requires that '(offset: Int, element: Int)' conform to 'Hashable'</p>
  <p>Referencing initializer 'init(_:id:content:)' on 'ForEach' requires that 'EnumeratedSequence&lt;[Int]&gt;' conform to 'RandomAccessCollection'</p>
  </blockquote>
  <p>How do I make this work?</p>