PhotoCropEditor icon indicating copy to clipboard operation
PhotoCropEditor copied to clipboard

Circle Shape Cropping

Open JDModi opened this issue 7 years ago • 0 comments

How to convert this code for Circle Shape Cropping? i want to need Square and Circle both cropping in it.

let square = UIAlertAction(title: "Square", style: .default) { [unowned self] action in let ratio: CGFloat = 1.0 // self.cropView?.cropAspectRatio = ratio if var cropRect = self.cropView?.cropRect { let width = cropRect.width cropRect.size = CGSize(width: width, height: width * ratio) self.cropView?.cropRect = cropRect } } actionSheet.addAction(square)

JDModi avatar May 31 '17 03:05 JDModi