Latest 0.2.0
Homepage https://github.com/malt03/PinchableImageView
License MIT
Platforms ios 8.0, requires ARC
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "PinchableImageView",
    "version": "0.2.0",
    "summary": "You can pinch an imageView.",
    "description": "You can rotate and scale this imageView by pinching.",
    "homepage": "https://github.com/malt03/PinchableImageView",
    "screenshots": "https://raw.githubusercontent.com/malt03/PinchableImageView/master/Screenshot.gif",
    "license": "MIT",
    "authors": {
        "Koji Murata": "[email protected]"
    },
    "source": {
        "git": "https://github.com/malt03/PinchableImageView.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This