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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.