TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2016 |
SPMSupports SPM | ✗ |
Maintained by Koji Murata.
let imageView = PinchableImageView()
imageView.image = UIImage(named: "lena")!
imageView.sizeToFit()
imageView.center = view.center
view.addSubview(imageView)
imageView.addCornerViews([.LeftTop: cornerView])
imageView.addCornerViews([.LeftTop: cornerView], panEnabled: false)
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?)
}
Koji Murata, [email protected]
PinchableImageView is available under the MIT license. See the LICENSE file for more info.