Recipe App Code Kit

Hi. I’ve been working on the Recipe App from the App Templates and can not get the Featured Recipe function to work properly. The view seems to count the number of recipes flagged “true” correctly, but then just displays the first few recipes irrespective of whether they are true or false. This seems to be that way in the original template so it’s not from the parts I’ve changed. Has anyone else worked on this, and resolved it?

Hi Geoff,

Welcome to the community.

I am assuming that you are doing one of the legacy courses " iOS Foundations with SwiftUI (2020)" which has the recipe App.

I remember following this course all those years ago and I do remember the issue cropping up where within the featured recipe Tab, when you select a recipe you get the wrong one or the same one each time no matter which Tab you are on.

Lesson 16 covers the bug fix related to the Featured Recipe issue you are referring to. So keep going through the course and when you get to that lesson it should become clear what has happened to require that change. In part it is due to an update to Xcode and iOS around the time the course was being created by Chris Ching. It’s not the first time that something like that happens but the good thing is that you get to see how an Xcode and iOS update can cause an issue to an App and what you need to do to fix it.