PhotoCropEditor
PhotoCropEditor copied to clipboard
Circle Shape Cropping
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)