TNImageSliderViewController – an image slider gallery for 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.

Introducing an image slider gallery for Swift

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.

Share this post

2 Responses

  1. Hello Frederik,
    Thank you for TNImageSliderViewController. I am using it in a test app successfully and it performs really well.

    Please kindly guide me on how I can using TNImageSliderViewController, intercept an image selection so that I can segue to another view to show a detail view. That will greatly help me.

    Thank you again.

    Sunil

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts