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(recipe.mainInformation.name, 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:
https://help.codecademy.com/hc/en-us/requests/new