Giter VIP home page Giter VIP logo

ios-imagezoomviewer's Introduction

ImageZoomViewer

Version License Platform

Overview

ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality. Framework also provides different types of animations. Currently, supporting only portrait mode.

Screenshot

Example

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CocoaPods

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

pod 'ImageZoomViewer'

Manual

The source is contained inside the Pod/ImageZoomViewer folder. Simply drag these classes into your project's directory.

Usage

Initialization

ImageZoomViewer * imageZoomViewer = [[ImageZoomViewer alloc]initWithBottomCollectionBorderColor:[UIColor blackColor]];
zoomImageView.delegate = self;

ImageZoomViewerDelegate

Your source view controllers need to implement this protocol to facilitate the transition. The protocol is as follows:

required 
-(void)initializeImageviewWithImages:(UIImageView *)imageview withIndexPath:(NSIndexPath *)indexPath withCollection:(int)collectionReference;

optional 
- (void)imageIndexOnChange:(NSInteger)index;

AnimationType

AnimationTypeEaseIn

[zoomImageView showWithPageIndex:0 andImagesCount:(int)images.count withInitialImageView:nil andAnimType:AnimationTypeEaseIn];

AnimationTypePop

CGRect animFrame = CGRectMake(100, 100, 100, 100);
UIImageView *imgView = [[UIImageView alloc] initWithFrame:animFrame];
[imgView setImage:image];
[imageZoomViewer showWithPageIndex:imageIndex andImagesCount:(int)[images count] withInitialImageView:imgView andAnimType:AnimationTypePop];

Dismiss

 [zoomImageView closeZoomViewer];
 [[NSNotificationCenter defaultCenter] postNotificationName:@"CLOSE_IMAGE_ZOOM_VIEWER" object:nil];

Requirements

  • iOS 7.0 or higher

Author

Anubhav Mathur, [email protected]

License

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

ios-imagezoomviewer's People

Contributors

anubhav-r-mathur-grofers avatar satyamkrishna avatar

Stargazers

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

Watchers

 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

carabina

ios-imagezoomviewer's Issues

Middle image is unable to scroll after zooming.

When app is launched, all images can be zoomed and scrolled to see the zoomed content. But once we reach to the last image and start scrolling back, now middle image can be zoomed but zoomed content can't be scrolled. Same happen for first and last image too but in random manner. Sometimes they can be zoomed but the zoomed image can't be scrolled. Can you please tell the fix for this?

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.