Code Monkey home page Code Monkey logo

asyncphotobrowser's Introduction

AsyncPhotoBrowser

High performance gallery designed for web images built with FastImageCache. It consists of a grid view controller that contains all thumbnails of the images. You can tap on any of the photos to browse specific images in a browser view controller with zoom in / out and scrolling capabilities.

Usage

Installation via Cocoapods

This is the recommended approach.

pod 'AsyncPhotoBrowser', '~> 0.2.0'

How to start

  1. Import all files in /Classes.

  2. Create a subclass of GalleryViewController.

  3. Implement GalleryDataSource protocol. As examples shown below

     override func awakeFromNib() {
         super.awakeFromNib()
         // Set dataSource of GalleryViewController
         self.dataSource = self
         ...
     }
    
     // MARK: Gallery Data Source
     func gallery(gallery: GalleryViewController, numberOfImagesInSection section: Int) -> Int {
         // return number of images
     }
     
     func gallery(gallery: GalleryViewController, imageURLAtIndexPath indexPath: NSIndexPath) -> NSURL {
         // return the remote or local URL of the specific image
     }
    

Demo

FastImageCache Demo

Pending Improvements

  1. Gallery View Controller currently has only one section containing all images. Consider adding more sections.

Known Issues

  1. Scrolling gesture on the transparent part of images doesn't work.
  2. Zooming sometimes makes image scrolling stuck. Zooming it again can solve this problem.

Notes

This is an experiment of FastImageCache.

Photo gallery serves an important role among many use cases. Sadly there is not a perfect solution that is both automatic and has high performance at the same time. My purpose is to implement such a solution as perfect as possible. I appreciate any help from you if you are interested!

License

MIT

asyncphotobrowser's People

Contributors

djben avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asyncphotobrowser's Issues

Cocoapods install fail

Here is the result of "pod install"

Updating local specs repositories

CocoaPods 0.39.0.beta.5 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `AsyncPhotoBrowser (~> 0.2.0)` required by `Podfile`

iPad support

Image browser shows an empty center column when run on an iPad.

Edit: Only seems to be a problem when running with 3 items per row.

Simple photo full screen view with scrollable images like "MVCarouselCollectionView".

This was wonderful library and what i have looking for so long.But,it makes me useful but a little more complex to use.

Actually this library is perfect at everything and meet my requirement except gallery thing which show multiple images which mean sad for me.

Looks like you are pro at there.So,mind if u make one simple image library like "MVCarouselCollectionView"
which let user show multiple images with scrollview and when we click it goes to full screen mode and let user pinch and zoom.

I got many errors at -> https://github.com/bizz84/MVCarouselCollectionView which are auto layout issue,difficult to use.

So,if u have any time,will u help us.There are many people who are seeking for the same answer like me.
It will be a pleasure if you do support for beginner like us who are stucking with scrollview.Thanks.

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.