Michaela you are truly a legend,
The code (potentially only because I know nothings) is a thing of beauty.
How I had gone about trying to fix the problem (using sections, table view, and static functions with arrays) would have probably been the end of me so it is much appreciated.
The only thing I don't quite understand is how ContentView can then be linked to an actual Table View, Cells and Search Bar in the UI.
I think I understand the DataModel should be a seperate .swift file but can't tell with ContentView and then got confused with the fact that the DataModel contains the code for the filtering. My VERY BASIC thought process was that if it was was being interacted with by the user then I wanted it in the VIewController?
You have been an enormous help and if i can borrow more of your time with the questions that would be spectacular
Thanks Again
Harry
Topic:
Programming Languages
SubTopic:
Swift
Tags: