Module 5 lesson 6 : Need help

I’m having trouble with module 5 lesson 6
of Ios foundations
here is the link to my work

let me know if anyone can help

p.s - I think my viewmodel is wrong

@stephenb711

Have you checked your code against the code for that lesson that is available in the course Resources?

Resources can be found up at the top of the course in the “Introduction Section” or the “Before You Begin” section in the case of the “14 Day Beginner Challenge (SwiftUI)”. Depending on the Course you select there will be an option titled “Resources” or “Materials for this course”. Tap on that link and then on the next page presented on the right you will have a link that says “All resources, projects and code” or a button that says “Download Materials”.

This will take you to a DropBox page where you can see folders related to each Module. Tap on the Download button in the top right of the screen and you can download all of the Materials covering all of the Modules for the course… or… you can drill down to a particular Module (double click on the folder) and then tap on the Download button to download all of the resources for just that Module… or … you can drill down even further to the relevant Lesson and download the code for that lesson.