I am following part 8 of the Cookcademy tutorial. I have a strange issue where if I navigate a recipe from the RecipeCategoryGridView and try and edit a recipe it just closes the new screen displayed when I click on anything to edit a description or change a value.
If I start from RecipesListView and edit it works fine.
I even downloaded the CodeCademy code showing the completed solution at the end of the tutorial and it has the same issue.
has anyone else had this issue and if so, did they manage to resolve it.
I believe it has something to do with the new NavigationStack…
My easy solution was go to RecipeDetailView file, in the .sheet modifier, change NavigationStack to the older NavigationView.
Same problem here. The editing recipe closes the moment you select any fields that are editable and I’m also using NavigationView as the person recommended above.
I have the same problem. When you reorder any component in the list (directions or ingredients) it closes the sheet. Here’s a video of the issue. Same issue happens with the downloadable code from the lesson.