Latest 1.0.0
Homepage https://github.com/grofers/iOS-ImageZoomViewer
License MIT
Platforms ios 7.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "ImageZoomViewer",
    "version": "1.0.0",
    "summary": "ImageZoomViewer allow to view and zoom multiple images.",
    "description": "ImageZoomViewer is xib based code snippet that allows image viewing and zooming on window of the app",
    "homepage": "https://github.com/grofers/iOS-ImageZoomViewer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anubhav Mathur": "[email protected]"
    },
    "source": {
        "git": "https://github.com/grofers/iOS-ImageZoomViewer.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "ImageZoomViewer/Classes/**/*.{h,m}",
    "requires_arc": true,
    "resources": [
        "ImageZoomViewer/Classes/**/*.xib"
    ]
}

Pin It on Pinterest

Share This