Skip to content
New issue

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 fit landscape image to my custom aspect ratio? #598

Open
Siddharth-tarsariya opened this issue Nov 18, 2024 · 0 comments
Open

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

Siddharth-tarsariya opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels

Comments

@Siddharth-tarsariya
Copy link

Siddharth-tarsariya commented Nov 18, 2024

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

@Siddharth-tarsariya Siddharth-tarsariya changed the title How can fit landscape image to my custom aspect ratio? How to fit landscape image to my custom aspect ratio? Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants