An view for zoom, pan, rotate and crop image built by swift in single file.
Pan Crop View | Zoom, Rotate and Crop Image |
---|---|
To add a LyEditImageView in your viewController:
let editView = LyEditImageView(frame: frame)
let image = yourimage
editView.initWithImage(image: yourimage)
self.yourview.addSubview(editView)
Then get the cropped image:
let croppedImage = editView.getCroppedImage()
LyEditImageView is released under the MIT License.