Here I am again with an error I don’t understand. This relates to IOS Foundations, Mod4: Lesson 6.
The error (screenshot below) wants me to add an EnvironmentObject to the “appropriate preview”. The error results in the inability to preview the list view and the tab view. However, when I run the app on the simulator, I can navigate between views just fine, but the detail view only shows the recipe name and the other info is blank. Screenshots are below for each view’s code.
I have followed all Chris’ instructions for this mod, and the only view to which he did not add an instance of the EnvironmentObject was the detail view. So I added an instance there, but it made no difference. The error persists.
Any help would be greatly appreciated.