Create instances of a main array for multiple objects that updates from the main array
<p>This is sort of an odd question that I hope I'm describing accurately enough for people to understand, but:</p>

<p>I have RealmModelObjects (called <code>People</code>), and I have a global array called <code>selectedListItems</code>. The array <code>selectedListItems</code> contains <code>RealmListItem</code>s, so each item in the array has multiple properties. One particular property of these that I care about is <code>listItemStatus</code>. </p>

<p>Ideally I'd like to generate an instance of <code>selectedListItems</code> for each <code>Person</code> in <code>People</code>, such that I'd be able to modify only that individual <code>Person</code>'s <code>listItemStatus</code> of the <code>indexPath.row</code>. However, I'd also like these instances to update themselves if the global array <code>selectedListItems</code> has stuff added or removed, <em>without</em> resetting any <code>listItemStatus</code>es that have already been changed.</p>

<p>This is my global array:</p>

<pre><code>var selectedListItems = [
    RealmListItem(value: ["A", "Dog", 4, 1, true]),
        RealmListItem(value: ["A", "Squirrel", 3, 1, true]),
        RealmListItem(value: ["B", "A+", 3, 1, true]),
        RealmListItem(value: ["B", "B-", 2, 1, true]),
        RealmListItem(value: ["M", "Art", 5, 1, true]),
        RealmListItem(value: ["M", "Sculpture", 1, 1, true]),
        RealmListItem(value: ["P", "Hitler", 2, 1, true]),
        RealmListItem(value: ["P", "Mao Zedong", 5, 1, true]),
        RealmListItem(value: ["R", "Aunt", 3, 1, true]),
        RealmListItem(value: ["R", "Nephew", 1, 1, true])
]
</code></pre>

<p>Built off of this RealmModelObject:</p>

<pre><code>class RealmListItem: Object {

    dynamic var category = ""
    dynamic var listItem = ""
    dynamic var listItemWeight = Double()
    dynamic var listItemStatus = Double()
    dynamic var isSelected = Bool()
}
</code></pre>

<p>I'd like to have an instance of <code>selectedListItems</code> generated for each <code>Person</code> so I can change the <code>listItemStatus</code> of the same RealmListItem between two people.</p>

<p>For example, I'd like to be able to change Steve's listItemStatus at "Dog" to 2, while Jessica's listItemStatus at "Dog" should be 0. </p>

<p>Is that possible, and if so, how would I go about it?</p>