title: How to use Identifiable in a ForEach loop
body: <p>I am trying to iterate through an array of objects. This object is conforming to the Identifiable protocol. When using a <code>ForEach</code> loop, I get the following error: <code>Type of expression is ambiguous without more context</code></p>
  
  <p>I've included the block of code that is throwing the error. The error is specifically underlining <code>\.name</code>. Am I missing something? </p>
  
  <p>Another note: This code worked in Xcode 11 Beta 2 but broke in Xcode 11 Beta 3...</p>
  
  <pre class="lang-swift prettyprint-override"><code>struct ItemRow : View {
  
      var categoryName:String
      var items:[Item]
  
      var body: some View {
          VStack {
              Text(self.categoryName)
                  .font(.title)
  
              ScrollView(showsHorizontalIndicator: false) {
                  HStack (alignment: .top){
                      ForEach (self.items.identified(by: \.name)) { item in
                          NavigationLink(destination: ItemDetail(item: item)) {
                              ItemView(item: item)
                                  .frame(width:300)
                                  .padding(.trailing, 30)
                          }
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Here is the Identifiable Object:</p>
  
  <pre class="lang-swift prettyprint-override"><code>struct Item:Hashable, Codable, Identifiable {
      var id:Int
      var name:String
      var category:Category
      var description:String
  }
  </code></pre>
  
  <p>(This code has been abstracted)</p>