The Shopping List Table View Controller

As you may have guessed, we need a new View Controller to get our app to work. This will be called ShoppingListTableViewController and it will be very similar to ItemTableViewController. This new Shopping List View Controller will be our Root View Controller and it will list all of our Shopping Lists. On tapping one of those lists, it will push a new Item View Controller into the navigation and list all of the items in that shopping list. To get started:

  1. Create a new Table View Controller file in the Controllers folder by right-clicking on the folder and selecting New File....
  2. Select Cocoa Touch Class and Subclass it from BaseTableViewController, then call the ShoppingListTableViewController file. ...

Get Hands-On Full-Stack Development with Swift 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.