JoeyM
February 12, 2023, 7:41pm
15
@Caps5150 finish the book you say ? What about Accessibility chapter lol.
Anyways, I think you might have over engineered this. Check out my simple solution here:
Solution screenshots:
[Screen Shot 2023-02-12 at 2.31.44 PM]
------------------------------------Implementation-----------------------------:
Core Data: Photo.isFavorite:
First thing first, I added isFavorite Boolean attribute for Photo entity in Photorama Core Data :
[Screen Shot 2023-02-12 at 12.50.48 PM]
Second, I deleted Photo+CoreDataClass.swift & Photo+CoreDataProperties.swift files and regenerated files by selecting Photo entity and going to Editor → Create NSManagedObject S…