Let's look at how to create a new model object:
- In the Navigator panel, open the LetsEatModel.xcdatamodel file, which can be found in the Core Data folder in the Common folder.
- Make sure that you have the Graph Style selected:
- Click the + button for Add Entity and then double-click on Entity, and update it to Favorite:
- Next, ensure that the Favorite entity is selected and click the + button for Add Attribute:
- In the box in the center of the screen, under Attributes, you should now see the word attribute. ...