
iOS 15 Programming for Beginners
By :

So far, you have imported FilterData.plist
into your app, created the FilterItem
and FilterDataManager
classes, and created the ImageFiltering
protocol. In this section, you'll set up the classes for the Photo Filter screen, which allows you to manage this screen and the collection view inside it.
Remember that you added the PhotoFilter
storyboard file 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 photo...