Creating a view controller for the filter cell

The Photo Filter screen provides the user interface that allows the user to select a filter to be applied to a photo. The filters will be displayed in a collection view. If you click PhotoFilter.storyboard in the Project navigator, you will see that the collection view is already present in the View Controller Scene, but there is no way to set the contents of the collection view cells. You will need to create a view controller for the collection view cells. To do so, 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: FilterCell
  • Subclass: UICollectionViewCell ...

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.