I don't find the properties to set aspect ratio like the above image in our lib. Could you help me?
thuongvanbui39 opened this issue · comments
thuongvanbui.39 commented
Chen commented
This one?
extension AspectRatioSettable where Self : QCropper.CropperViewController {
public func setAspectRatio(_ aspectRatio: QCropper.AspectRatio)
public func setAspectRatioValue(_ aspectRatioValue: CGFloat)
}
example:
cropper.setAspectRatio(.ratio(width: 9, height: 16))
thuongvanbui.39 commented
yes, I see. but the image is selected auto-zoom to center. I want to turn off the zoom center and aspect to fit the original image.
Chen commented
This is not supported, you can modify the relevant code yourself, this logic is mainly controlled by scrollViewZoomScaleToBounds
thuongvanbui.39 commented
Yes. Many thanks for your supported.
Chen commented
You are welcome