If you need it, I can include the code for ContentView.swift, I just wasn't sure if it would fit with the word limit.
Post
Replies
Boosts
Views
Activity
@sha921 ,
Thank you so much for your suggestion. I tried this and found that the count resets right when I change to a different view; but it only resets the icon after I change back. In the shop page, I have numberOfProducts set to cartManager.products.count, with products being an array found within the model CartManager. The array is added to whenever the plus button is pressed, but I can't see why the array keeps emptying, reseting the data.