Creating a data model

Currently, when you tap Save in the Review Form screen, the data you entered in the fields is just printed to the Debug area, and tapping Save in the Photo Filter screen doesn't do anything. The first step is to create objects to store data from the Review Form screen and the photo from the Photo Filter screen. You'll create entities for reviews and photos using Xcode's data model editor. Let's create the entity for reviews now:

  1. Right-click the Misc folder in the Project navigator and create a New Group. Name this group Core Data.
  2. Right-click the Core Data group and choose New File.
  3. iOS should already be selected. Type data in the filter field, and select Data Model. Click Next:
  1. Name the file LetsEatModel and click ...

Get iOS 13 Programming for Beginners - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.