title: SwiftUI: Type of expression is ambiguous without more context, When passing ObservableObject between Views
body: <p>I was looking for an example for a DataStore in SwiftUI and found this example.</p>
  
  <pre><code>import SwiftUI
  import Combine
  
  class MyDatabase: ObservableObject {
      let didChange = PassthroughSubject&lt;MyDatabase, Never&gt;()
  
      var contacts: [Contact] = [
          Contact(id: 1, name: "Anna"), Contact(id: 2, name: "Beto"),
          Contact(id: 3, name: "Jack"), Contact(id: 4, name: "Sam")
      ] {
          didSet {
              didChange.send(self)
          }
      }
  
      struct Contact: Identifiable{
          var id: Int
          var name: String
      }
  }
  
  struct ContactsList: View {
      @EnvironmentObject private var database: MyDatabase
  
      var body: some View {
          NavigationView {
              List($database.contacts) { contact in
                  NavigationLink(destination: ContactDetail(contact: contact)) {
                      Text(verbatim: contact.value.name)
                      //here Error 1: Types of expression....
                  }
              }
              .navigationBarTitle(Text("Contacts"))
          }
      }
  }
  
  struct ContactDetail: View {
      @Binding var contact: MyDatabase.Contact
  
      var body: some View {
          VStack {
              TextField($contact[\.name])
                  .textFieldStyle(.roundedBorder)
                  .font(.title)
                  .padding()
              //here Error 2: Types of expression....
              Spacer()
          }
          .navigationBarTitle(Text("Edit"), displayMode: .inline)
      }
  }
  
  </code></pre>
  
  <p>However, after testing it, I got the below error multiple times:</p>
  
  <blockquote>
    <p>Type of expression is ambiguous without more context</p>
  </blockquote>
  
  <p>I also tried following tutorial for the same solution <a href="https://mecid.github.io/2019/07/03/managing-data-flow-in-swiftui/" rel="nofollow noreferrer">https://mecid.github.io/2019/07/03/managing-data-flow-in-swiftui/</a>
  but I got the same errors.
  Did anything changes regarding the Bindings in the latest beta?
  Im running Beta 6</p>