Coder Social home page Coder Social logo

nourkrimesh / ftimageviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liufengting/ftimageviewer

0.0 1.0 0.0 82.45 MB

FTImageViewer can preview images with just one lines of code with Swift. Also FTImageViewGrid has make showing images in grid much easier.

License: MIT License

Ruby 2.64% Objective-C 1.20% Swift 96.16%

ftimageviewer's Introduction

FTImageViewer

FTImageViewer

Twitter GitHub license Pods Versions CI Status Swift Version Compatibility swiftyness 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!

Feathers

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

ScreenShots

run the demo in FTImageViewerDemo to see more

Usage

  • 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

Installation

Manually

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

Cocoapods

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

pod 'FTImageViewer'

Bouns

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

License

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

ftimageviewer's People

Contributors

liufengting avatar mohsinalimat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.