I saw a lot of similar questions but they are all for situations with equal views.
In my case I have a vertical stack of views:
And they should keep proportions simultaneously on different devices.
Could you advice how to achieve such goal? Xib or programmatically - it makes no odds.
Currently I'm trying to set their sizes manually.
Define equal height constraint, than edit it and set multiplier to e.g. "1:5".
Update:
Choose a vertical stack view, add your 4 views, mark all of them, set the constraint "equal height" and add all 3 constraints:
Now select each constraint and set your multiplier as you like in relation to the first:
Define a spacing in stack view settings:
Define StackView border gaps relative to margin or via const value:
You do not need more constraints. Proof by change device and orientation: