We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: