Post

Replies

Boosts

Views

Activity

Reply to Shopping cart count disappears after changing tabs
I figured it out! It turns out that when I called the .environment on the main app struct, I directly called CartManager() instead of cartManager. I think this is because of when I transitioned to the new Observed macro, I deleted the Object part of the .environmentObject that I had before, but I didn't change what was being called inside the parentheses. Before: After:
May ’24