Image ratio constraint in auto layout

Need a feature that can help scale the images proportionately within auto-layout components. Right now if I want to maintain the image proportions(e.g-16:9) I have to keep the size fixed, which doesn’t make that component scalable. This will be a very useful feature when working with fixed image proportions.

I have to constantly calculate the new height or width and resize it manually.

Does anyone else experience this? Is anyone using a plugin or workaround to help solve this?

2 Likes

Hey @sreeja,

There may be a plugin in our community that achieves this. Here’s an example, but feel free to explore plugins on your own:

Thanks this is somewhat helpful but even this breaks with multiple layering. I think a constraint level addition will help solve this problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.