What I'm meaning is: I have a Table View and Populated Cells, I want each cell, when selected, to link to its on or off state that is represented in its bool value. When it's in an 'On' State, it adds +1 to a counter, when it's clicked to it's 'Off' state it takes back that count (so subtracting). I have the bool within the class that populates the table view so that it doesn’t mix up selections when filtering data via search bar
Imagine a 'How many items do you have selected' type of counter.
What I'm unsure about is how to connect the bool to the selection itself so it’s not ‘mixed up’. Examples are welcome!
Thankyou