Dec 12, 2023
The button was meant to be a self-contained favorite foods button.
Feel free to change the name to FavoriteFoodsButton and FavoriteFoodsService.
One could, if one wished, simply refactor the FavoritesButton to take a passed ObservableObject as a parameter, and then pass in a conforming service from a FavoriteFoodsButton view, or from a FavoritestoreButton view.