I cannot figure out how to change the label text on my collection view cell when the user presses the cell, from "not added" to "added" the model is a struct.
Please reference my repo for more information.
override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
shoppingListController.shoppingItems[indexPath.item].itemHasBeenAdded.toggle()
}
This is what I have so far but is giving me an error saying that it is an immutable value.