
iOS 14 Programming for Beginners
By :

So far, you have imported FilterData.plist
into your app, created the FilterItem
and FilterManager
classes, and created the ImageFiltering
protocol. In this section, you'll set up the view controllers for the Photo Filter screen that allow you to manage this screen and the collection view inside it.
Remember that you added PhotoFilter.storyboard
to your project in Chapter 16, Getting Started with Mapkit. It contains a scene that consists of a large image view that will hold the user-selected photo and a collection view that will display filter previews. The following screenshot shows what this will look like when you have completed the implementation:
Figure 20.2 – iOS simulator showing the completed Photo Filter screen
This screen works as follows. When you tap on the Add Photo button in the Restaurant Detail screen and select a photo, the Photo Filter screen will appear, showing the selected...