Latest 2.0.6
License MIT
Platforms ios 10.0, requires ARC
Dependencies Kingfisher
Frameworks UIKit


GitHub license
Pods Versions
CI Status
Swift Version Compatibility
Swift Version
GitHub stars

FTImageViewer can preview images with just one lines of code. Also FTImageViewGrid has make showing images in a grid much easier. I wrote this for my future projects. Feel free to try it in your own projects!


  • [x] ❤️ Supports both portrait and landscape
  • [x] Single tap to dismiss and auto return to the current index
  • [x] Double tap to zoom in and double tap again to zoom out
  • [x] Pinch to zoom in/out
  • [x] Button tap to dismiss
  • [x] Button tap to save current image to system Photo Album
  • [x] Pan up/down to dismiss (like Facebook or QQZone)
  • [ ] Pan left/right to dismiss at first/last page


FTImageViewer FTImageViewer

run the demo in FTImageViewerDemo to see more


  • show images in a grid and preview images with one line of code
        imageGridView.showWithImageArray(imageArray) { (buttonsArray, buttonIndex) in
            // in this tap block, preview images with one line of code
            FTImageViewer.sharedInstance.showImages(self.imageArray, atIndex: buttonIndex, fromSenderArray: buttonsArray)
  • see more docs in FTImageViewerDemo/DemoTableViewCell.swift



  • clone this repo.
  • Simply drop the FTImageViewer folder into your project.
  • Enjoy!


FTImageViewer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FTImageViewer'


In FTImageViewerDemo, shows you how to use it in tableview, using pure AutoLayout. Enjoy.


FTImageViewer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "FTImageViewer",
    "version": "2.0.6",
    "summary": "A simple ImageViewer and ImageGrid. Preview images with just a few lines of code.",
    "description": "FTImageViewer. A simple ImageViewer and ImageGrid. Can preview images with just a few lines of code.nI wrote this for my future projects. Feel free to try it in your own projects!",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "liufengting": "[email protected]"
    "platforms": {
        "ios": "10.0"
    "source": {
        "git": "",
        "tag": "2.0.6"
    "source_files": [
    "resources": "FTImageViewer/*.{bundle}",
    "requires_arc": true,
    "frameworks": "UIKit",
    "swift_versions": "5.0",
    "dependencies": {
        "Kingfisher": []

Pin It on Pinterest

Share This