title: Issue with ForEach in SwiftUI
body: <p>I'm trying to create a list from an array of <code>Request</code> objects. </p>
  
  <p>I have defined a custom view <code>RequestRow</code> to display a <code>Request</code>.</p>
  
  <p>The following works to display a list of requests…</p>
  
  <pre><code>struct RequestsView : View {
  
      let requests: [Request]
  
      var body: some View {
          List {
              ForEach(0..&lt;requests.count) { i in
                  RequestRow(request: self.requests[i])
              }
          }
      }
  }
  </code></pre>
  
  <p>but the following won't compile…</p>
  
  <pre><code>struct RequestsView : View {
  
      let requests: [Request]
  
      var body: some View {
          List {
              ForEach(requests) { request in
                  RequestRow(request: request)
              }
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p><code>Cannot convert value of type '(Request) -&gt; RequestRow' to expected argument type '(_) -&gt; _'</code></p>
  </blockquote>
  
  <p>Any thoughts as to what the issue might be?</p>