I am still not sure about the rules of struct copy or reference.
I want to mutate a struct object while iterating on it from an array: For instance in this case I wo
You can use use Array.indices:
for index in arrayOfMyStruct.indices { arrayOfMyStruct[index].backgroundColor = UIColor.red }