@roonToon has some issues with the yada yada
protocol in SwiftUI.
I have been typing in the code as it is presented but I get an error with the let menu = Bundle....yada yada.
Couple of things.
First, welcome to HackingWithSwift and this wonderful course.
Second, please ask questions. There are many here willing to help.
Next, helpers often try to run your code to find the error. So I offer this critique. I do not want to re-type your code. I prefer to copy/paste your code from this forum into a test application, or a Playground
file. Please use the markdown provided and copy your code into your message. Nota bene: We don't need to see ALL THE CODE, just the section giving you issues. Boil the problem down to its bare essence, if you please.
Please add loads of comments to your code. What do you understand? What do you think the code should do? This helps us point you in the right direction, or perhaps, uncover the root cause of your understanding. Yada, yada.
Also, your error code is pretty clear. It seems you are trying to decode some JSON that should resolve into an array of MenuSection
objects. Yet, the error code states: Cannot find MenuSection in scope.
Yikes! How is Swift supposed to decode JSON into chunks of MenuSections if you're not including MenuSection
where Swift can find it?
What day are you on with your 100 Days of SwiftUI journey? Please tell us what day you are on, so we can point you to the lesson that you need to revisit and study!
Good luck
Keep Coding!