I have an array of objects. I try to pass an object from the array to another controller and update it there.
let items: [XX] = [XX1, XX2]
The following line doesn't give a reference to that object. instead it is obviously copying it!
var item = items[0]
The following line fails to update the object in the array:
item.seen = true
Any ideas?