The easiest way to demonstrate my question is with an example, so here it is:
I have a container view that has two subsets, A and B.
Container: 240x80
A: 80x80, fixed distance between leading / upper / lower.
B: 160x80, fixed distance between leading / upper / lower, distance between points h with A.

Now, when I resize the container to, say, 480x80, I have something like this: 
This is because Xcode considers my limitations to be ambiguous, so it bound the width for me and gives all the extra horizontal space for B.
Well, I understand his concern, but what I really want is to resize A and B proportionally as follows:

My guess is that it will have something to do with the Hugging / compression priority settings, but I cannot figure out how to set these values ββto get the desired results!
To ask this question in another way, when the container is enlarged, how to indicate where the extra space goes? How to set priorities so that the space is distributed for viewing A and viewing B 4: 6? 5: 5? 8: 2
?
Thanks!
source share