title: String contents not being changed
body: <p>This is my main view where I create an object of getDepthData() that holds a string variable that I want to update when the user click the button below. But it never gets changed after clicking the button</p>
  
  <pre><code>import SwiftUI
  
  struct InDepthView: View {
      @State var showList = false
      @State var pickerSelectedItem = 1
      @ObservedObject var data = getDepthData()
  
      var body: some View {
          VStack(alignment: .leading) { 
                  Button(action: {
                      self.data.whichCountry = "usa"
                      print(" indepthview "+self.data.whichCountry)
                  }) {
                  Text("change value")
                  }
           }
       }
  }
  </code></pre>
  
  <p>Here is my class where I hold a string variable to keep track of the country they are viewing. But when every I try to modify the whichCountry variable it doesn't get changed</p>
  
  <pre><code>class getDepthData: ObservableObject {
  
      @Published var data : Specific!
      @Published var countries : HistoricalSpecific!
      @State var whichCountry: String = "italy"
  
      init() {
          updateData()
      }
  
      func updateData() {
  
          let url = "https://corona.lmao.ninja/v2/countries/"
  
          let session = URLSession(configuration: .default)
  
          session.dataTask(with: URL(string: url+"\(self.whichCountry)")!) { (data, _, err) in
  
              if err != nil {
                  print((err?.localizedDescription)!)
                  return
              }
  
              let json = try! JSONDecoder().decode(Specific.self, from: data!)
  
              DispatchQueue.main.async {
                  self.data = json
              }
  
          }.resume()
      }
  }
  
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>