Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

ModalServices/PinchableImageView

 
 

Repository files navigation

PinchableImageView

Platform Language Carthage compatible CocoaPods License

Screen Shot

Usage

Initialize

let imageView = PinchableImageView()
imageView.image = UIImage(named: "lena")!
imageView.sizeToFit()
imageView.center = view.center
view.addSubview(imageView)

Initialize corner views for rotate

imageView.addCornerViews([.LeftTop: cornerView])

Initialize corner views without rotate

imageView.addCornerViews([.LeftTop: cornerView], panEnabled: false)

Delegate

protocol PinchableImageViewDelegate {
  optional func pinchableImageViewTouchesBegan(pinchableImageView: PinchableImageView, touches: Set<UITouch>, withEvent event: UIEvent?)
  optional func pinchableImageViewTouchesMoved(pinchableImageView: PinchableImageView, touches: Set<UITouch>, withEvent event: UIEvent?)
  optional func pinchableImageViewTouchesEnded(pinchableImageView: PinchableImageView, touches: Set<UITouch>, withEvent event: UIEvent?)
}

Installation via Carthage

PinchableImageView is available through Carthage. To install it, simply add the following line to your Cartfile:

github "malt03/PinchableImageView"

Installation via CocoaPods

PinchableImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PinchableImageView"

Author

Koji Murata, malt.koji@gmail.com

License

PinchableImageView is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 49.1%
  • Shell 44.4%
  • Ruby 3.5%
  • Objective-C 3.0%