This article is 10 years old

The content here might be outdated as technology and best practices evolve quickly. While the concepts may still be valuable, please verify the information against current documentation and standards.

TNImageSliderViewController - an image slider gallery for Swift

github ios swift

The problem

Too many times a client has asked to add a sliding image gallery to an iOS app, so I wrapped it up in a little component. You can download it from GitHub.

I took some time to write this component, so it is easy to manage image slider galleries.  First I looked around on the web, but there was nothing that really fitted my needs, so the best thing to do in such a case is write it yourself :-).

Prerequisites

  • Xcode

  • iOS8+

Features

  • Horizontal scrolling

  • Vertical scrolling

  • Page control to indicate how many photos are in the list

  • Works in both orientations (landscape, portrait)

  • Cell reuse (works on UICollectionVIew)

Download

You can download the project on GitHub.  If you have any questions, just ask it on  Twitter, put a comment below or open an issue on GitHub.

The component is also available via CocoaPods.

Frederik Jacques - Author

About the Author

👋 Hi, I'm Frederik Jacques, a passionate iOS developer and entrepreneur with over a decade of experience building innovative mobile applications.

I love creating apps that solve real problems and bring joy to users. From educational tools to creative meme makers, I'm always exploring new ways to blend technology with user experience. When I'm not coding, you'll find me sharing insights about iOS development, app monetization, and the indie developer journey.