It is still very difficult to understand your code, partly because naming of var is not explicit enough.
What is prefArr ? How is it populated (if an array).
When you save:
you create a new instance saveFav
then, I don't understand what you are doing in the loop. Is it just for displaying saveFav ?
I do not see in save where you reference a newly created fav
So the first questions:
where and how do you create a new favorite
how do you use it in save
Topic:
Programming Languages
SubTopic:
Swift
Tags: