title: How to pass binding objects in other views?
body: <p>I'm trying to pass textField values from one view to another, from AdressView to ShoppingView</p>
  <pre><code>struct AdressView: View {
  
  @State var city = &quot;&quot;
  @State var adress = &quot;&quot;
  @State var houseNumber = &quot;&quot;
  @State var flatNumber = &quot;&quot; 
  
  var body: some View {
  NavigationLink(destination: ShoppingView(city: $city, adress: $adress, houseNumber: $houseNumber, flatNumber: $flatNumber)) {
              Button {
                  
              } label: {
                  Text(&quot;Save&quot;)
                      .padding()
                      .foregroundColor(Color.blue)
              }
  }
  
  struct ShoppingView: View {
  
  @Binding var city: String
  @Binding var adress: String
  @Binding var houseNumber: String
  @Binding var flatNumber: String
   
  HStack {
                  Text(&quot;City:&quot;)
                  Spacer()
                  Text(city)
              }
  }
  
  The problem is that ShoppingView is one of the tab items and I can't understand how I should pass binding objects of ShoppingView in MainView. I declared 
  
  @State var city = &quot;&quot;
  @State var adress = &quot;&quot;
  @State var houseNumber = &quot;&quot;
  @State var flatNumber = &quot;&quot;
  
  ShoppingView(city: $city, adress: $adress, houseNumber: $houseNumber, flatNumber: $flatNumber)
              .tabItem {
                  Text(&quot;Cart&quot;)
                  Image(systemImage: &quot;cart&quot;)
              }
  </code></pre>
  <p>But this's not showing in ShoppingView any textField values, which I entered in AdressView.</p>