Creating a View Controller for the Photo Filter screen

So far, you've already set up FilterCell to manage the collection view cells and configured the Cancel button to dismiss the Photo Filter screen, but you haven't set up the view controller for the Photo Filter screen yet, which is required to manage the screen's contents. Let's create one now. Follow these steps:

  1. Right-click the PhotoFilter folder and select New File.
  2. iOS should already be selected. Choose Cocoa Touch Class and click Next.
  3. Configure the file, as follows:
  • Class: PhotoFilterViewController
  • Subclass: UIViewController
  • Also create XIB: Unchecked
  • Language: Swift
  • Click Next
  1. Click Create. PhotoFilterViewController.swift will appear in the Project navigator. Delete all the ...

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.