title: I am getting errors when I attempt to mutate my variable that has a color value stored in it
body: <p>I currently have a list that takes in json data from a remotely stored file online. I have created a var 'hwcolor' which I store a color variable in it. I plan to mutate the value if a certain value from the json file is read. </p>
  
  <p><code>var hwcolor: Color = Color.white</code></p>
  
  <p>Here is my color variable.</p>
  
  <pre><code>List(fetcher.hws) { hw in
                          if hw.subject == "H2 Physics" {
                              self.hwcolor = Color.blue
                          }
  
                          else {
                              self.hwcolor = Color.white
                          }
  </code></pre>
  
  <p>The json file data loads up in the list properly and everything is in place. However, I am unable to get the color value to mutate according to the value read. I received an error 'Cannot assign to property: 'self' is immutable' from Xcode whenever I attempt to run the code. How should I change my code to allow the color variable to mutate?  </p>
  
  <pre><code>         HStack {
                          VStack (alignment: .leading) {
  
                              Text(hw.title)
                                  .foregroundColor(self.hwcolor)
                              Text(hw.info)
                                  .font(.system(size: 14))
                                  .foregroundColor(Color.gray)
                              Text(hw.duedate)
                                  .font(.system(size: 11))
                                  .foregroundColor(Color.gray)
                          }
                              Spacer()
                              Text(hw.subject)
                                  .padding()
  
                      }
                      }
  
                  }
  </code></pre>
  
  <p>Here is the code that illustrates what I plan to have in each cell of a list. </p>