O'Reilly logo

Learn iOS 11 Programming with Swift 4 - Second Edition by Craig Clayton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a new model object  

Let's look at how to create a new model object:

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required