Skip to content

How to fit landscape image to my custom aspect ratio? #598

Open
@Siddharth-tarsariya

Description

Recording.mp4

Does anyone know how to achieve this?

This is my code

let cropController = CropViewController(croppingStyle: .default, image: image)
cropController.customAspectRatio = CGSize(width: 9, height: 16)
cropController.aspectRatioLockEnabled = true
cropController.resetAspectRatioEnabled = false
cropController.cropView.cropBoxResizeEnabled = false

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions