Latest 1.1.2
Homepage https://github.com/stockx/PinchToZoomImageView
License MIT
Platforms ios 8.2
Authors

PincToZoom Logo

PinchToZoomImageView
Platform
Version
License

Description

PinchToZoomImageView is a drop-in replacement for UIImageView that supports pinching, panning, and rotating. Use cases include any occurences of an image that is zoomable. This was inspired by InstaZoom and ZoomRotatePanImageView.

pinch-to-zoom-image-view

Contents

  1. Features
  2. Installation
  3. Supported OS & SDK versions
  4. Usage
  5. License
  6. Contact

Features

  • [x] Supports pinching, panning, and rotating.
  • [x] Works when used in a UIViewController or UIScrollVieController (e.g. UICollectionViewController, UITableViewController, etc.).
  • [x] Shows the pinched image overtop everythingls else on the screen, with the exception of the status bar.
  • [x] Fully configurable in Interface Builder and code.
  • [x] Example app to demonstrate the various configurations.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

$ gem install cocoapods

To integrate PinchToZoomImageView into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'PinchToZoomImageView'

Then, run the following command:

$ pod install

In case Xcode complains ("Cannot load underlying module for PinchToZoomImageView") go to Product and choose Clean (or simply press K).

Manually

If you prefer not to use CocoaPods, you can integrate PinchToZoomImageView into your project manually.

Supported OS & SDK Versions

  • Supported build target – iOS 8.2+ (Xcode 8.3.2+)

Usage

PinchToZoomImageView is a subclass of UIImageView. Use PinchToZoomImageView just as you would a normal UIImageView.

PinchToZoomImageView can be used in either Interface Builder or code. In order to enable/disable pinching, update the isPinchable property.

License

PinchToZoomImageView is developed by Josh Sklar at StockX and is released under the MIT license. See the LICENSE file for details.

Contact

You can follow or drop me a line on my Twitter account. If you find any issues on the project, you can open a ticket. Pull requests are also welcome.

Latest podspec

{
    "name": "PinchToZoomImageView",
    "version": "1.1.2",
    "summary": "PinchToZoomImageView is a drop-in replacement for UIImageView that supports pinching, panning, and rotating.",
    "homepage": "https://github.com/stockx/PinchToZoomImageView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Josh Sklar": "[email protected]"
    },
    "social_media_url": "https://twitter.com/jrmsklar",
    "platforms": {
        "ios": "8.2"
    },
    "source": {
        "git": "https://github.com/StockX/PinchToZoomImageView.git",
        "tag": "1.1.2"
    },
    "source_files": "Source/**/*.swift",
    "description": "PinchToZoomImageView is a drop-in replacement for UIImageView that supports pinching, panning, and rotating. Use cases include any occurences of an image that is zoomable.nnFeatures:n- Supports pinching, panning, and rotating.n- Works when used in a UIViewController or UIScrollVieController (e.g. UICollectionViewController, UITableViewController, etc.).n- Shows the pinched image overtop everythingls else on the screen, with the exception of the status bar.n- Fully configurable in Interface Builder and code.n- Example app to demonstrate the various configurations.",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This