Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

🖼 A drop-in replacement for UIImageView that supports pinching to zoom, similar to Instagram's pictures.

License

Notifications You must be signed in to change notification settings

stockx/PinchToZoomImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🖼 A drop-in replacement for UIImageView that supports pinching to zoom, similar to Instagram's pictures.

Resources

License

Stars

Watchers

Forks

Packages

No packages published