O'Reilly logo

Learn iOS 11 Programming with Swift 4 - Second Edition by Craig Clayton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating our filter scroller 

After a user selects a photo to use, we present the user with a screen, which contains that image. In the following image, we have a scroller, also known as a UIScrollView, which allows us to create content that scrolls either horizontally or vertically. The UIScrollView displays an image (thumbnail) with the filter applied to it as well as the name of the filter. This image and name represent our filters visually to our users.

When the user taps on the image, the user sees the selected filter change the primary image. Let's look at an example:

We are now going to create the elements inside the UIScrollView. Since ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required