Giter VIP home page Giter VIP logo

pinchtozoomimageview's Introduction

PincToZoom Logo

Swift3.1 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
  • Supports pinching, panning, and rotating.
  • Works when used in a UIViewController or UIScrollVieController (e.g. UICollectionViewController, UITableViewController, etc.).
  • Shows the pinched image overtop everythingls else on the screen, with the exception of the status bar.
  • Fully configurable in Interface Builder and code.
  • Example app to demonstrate the various configurations.

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 build target - iOS 8.2+ (Xcode 8.3.2+)

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.

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

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.

pinchtozoomimageview's People

Contributors

jrmsklar avatar

Stargazers

 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

pinchtozoomimageview's Issues

UIScroll not stopping

Hi,

Using PinchToZoomImageView on a UITableView sometimes when we want to stop the scroll tapping with one finger, the scroll doesn't stop. If we set isUserInteractionEnabled = false for the PinchToZoomImageView this never happens. I was investigating but I only found that the issue is related with PinchToZoomImageView because extending from UIImageView this never happens.

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.