Skip to content

Circle Shape Cropping #11

@JDModi

Description

@JDModi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions