title: Swift(UI) Error: Cannot use mutating member on immutable value: 'self' is immutable
body: <p>Basically what i want to do is if you press the Button then entries should get a new CEntry. It would be nice if someone could help me out. Thanks!</p>
  <pre><code>struct AView: View {
  
     var entries = [CEntries]()
  
     var body: some View {
         ZStack {
             VStack {
                 Text(&quot;Hello&quot;)
                 ScrollView{
                     ForEach(entries) { entry in
                         VStack{
                          Text(entry.string1)
                          Text(entry.string2)
                      }
                  }
              }
          }
          Button(action: {
              self.entries.append(CEntries(string1: &quot;he&quot;, string2: &quot;lp&quot;)) &lt;-- Error
          }) {
              someButtonStyle()
          }
      }
  }
  </code></pre>
  <p>}</p>
  <hr />
  <h2>The Class CEntries</h2>
  <pre><code> class CEntries: ObservableObject, Identifiable{
      @Published var string1 = &quot;&quot;
      @Published var string2 = &quot;&quot;
  
      init(string1: String, string2: String) {
          self.string1 = string1
          self.string2 = string2
      }
  }
  </code></pre>