Using @State but getting error: Cannot use mutating member on immutable value: ‘self’ is immutable
Please, can someone explain why I can add another eventArray if I define the instance (t2Array) in onAppear while, if I declare it as @State (t3Array) at the beginning of the struct, I get the error: Cannot use mutating member on immutable value: ‘self’ is immutable