Variable ratio of height to width example 9/16

I am trying to create a constraint where the rectangle is set to fill width and the height will auto adjust to width*9/16 , is there a way to create a mathematical constraint to width value ? not in prototype mode ?

Hi @Amichai_Oron, Thank you for reaching out to about this!

I’m not sure if I understand correctly, but you’re looking to set the aspect ratio of a rectangle to 9/16 in an “Auto Layout” frame that has horizontal resizing set to “Fill Container”?

In that case, currently, achieving this might be a bit challenging. However, I’ve found some related feature requests that might interest you:

Additionally, while these may not perfectly meet your needs, here are some community resources that could be helpful:

Feel free to explore on your own!

I may have misunderstood since you mentioned “variable” and “prototype” in your post. Please let us know if there’s anything I’ve overlooked!

We always welcome additional insights or suggestions from our community, so if you have any, please feel free to share!

Thanks,

hello Junko , here is the challenge when you use auto layout you can take a components and paste it multiple times the auto layout when set to fill will automaticaly fill the full width of the group . so if you place one element it will take up all the space , 2 elements will take half the space etc. but you cannot lock the aspect ratio so if for instant the element is a 9:16 , it will not auto adjust the height in accordance .