Cookcademy 2 - Build the Recipe List

This isn’t a question, but if someone is coming here looking for help when you arrive to the code:

List { ForEach(recipes) { recipe in NavigationLink(, destination: RecipeDetailView(recipe: recipe)) } .listRowBackground(listBackgroundColor) .foregroundColor(listTextColor) } .navigationTitle(navigationTitle)

It will build but you will NOT be able to navigate to the RecipeDetailView unless you wrap this in a NavigationView. I guess this hasn’t been updated on Codecademy yet. I hope this helps someone.

1 Like

If this is a bug or curriculum quality report, you should report it here:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.