Latest 0.1.2
Homepage https://github.com/ergunemr/EEZoomableImageView
License MIT
Platforms ios 10.0, requires ARC
Frameworks UIKit
Authors

Provides full screen zooming ability to UIImageView like instagram.

EEZoomableImageView
EEZoomableImageView
EEZoomableImageView

What does EEZoomableImageView do?

Gives full screen zooming ability to UIImageView with no additional code.

EEZoomableImageView
EEZoomableImageView

It handles number of the touch changes on the screen. There is no weird behaviour like jumping image’s center when user removes one finger from the screen, as far as I know. :squirrel:

Setup

Using CocoaPods (Recommended)

Add the line below to your Podfile;

pod 'EEZoomableImageView'

Then you can install it with pod install command.

Manual

Download the sample project, just drag and drop the EEZoomableImageView.swift file to your project.

Usage

Make your image view subclass of EEZoomableImageView. It’s simple as that.

Customizable Parameters

Custom parameters can be set through EEZoomableImageView instance

    @IBOutlet weak var zoomableImageView: EEZoomableImageView! {
        didSet {
            zoomableImageView.minZoomScale = 0.5
            zoomableImageView.maxZoomScale = 3.0
            zoomableImageView.resetAnimationDuration = 0.5
            zoomableImageView.zoomDelegate = self
        }
    }
  • minZoomScale: Minimum scale of the zoom imageview. Default value is 1.00
  • maxZoomScale: Maximum scale of the zoom imageview. Default value is 3.00
  • resetAnimationDuration: Duration of the reset animation. Default value is 0.3 sec
  • zoomDelegate: Zoom Delegate is informed when zooming started and ended.
  • isZoomingActive: Flag that indicates whether zooming is active or not. (Read Only)

    Questions or Advices

    Just send me an email ([email protected])

Latest podspec

{
    "name": "EEZoomableImageView",
    "version": "0.1.2",
    "summary": "Provides full screen zoom feature to image view like instagram.",
    "homepage": "https://github.com/ergunemr/EEZoomableImageView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Emre": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/ergunemr/EEZoomableImageView.git",
        "tag": "0.1.2"
    },
    "source_files": "EEZoomableImageView/EEZoomableImageView/*.{swift}",
    "frameworks": "UIKit",
    "swift_version": "3.0",
    "requires_arc": true
}

Pin It on Pinterest

Share This